Set Qt style sheets immediately before main window show

This commit is contained in:
Abs62 2019-03-19 17:37:51 +03:00
parent 6bc4088671
commit 465f90a315

View file

@ -146,8 +146,6 @@ MainWindow::MainWindow( Config::Class & cfg_ ):
Epwing::initialize();
#endif
applyQtStyleSheet( cfg.preferences.displayStyle, cfg.preferences.addonStyle );
ui.setupUi( this );
articleMaker.setCollapseParameters( cfg.preferences.collapseBigArticles, cfg.preferences.articleSizeLimit );
@ -789,6 +787,8 @@ MainWindow::MainWindow( Config::Class & cfg_ ):
translateLine->setFocus();
applyQtStyleSheet( cfg.preferences.displayStyle, cfg.preferences.addonStyle );
if ( trayIcon )
{
// Upgrade existing dummy tray icon into a full-functional one