mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
Set Qt style sheets immediately before main window show
This commit is contained in:
parent
6bc4088671
commit
465f90a315
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue