mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
fix: trayicon scan popup icon display not correct
This commit is contained in:
parent
54389a72eb
commit
92e06428f7
|
@ -237,8 +237,12 @@ MainWindow::MainWindow( Config::Class & cfg_ ):
|
|||
enableScanPopup->setCheckable( true );
|
||||
enableScanPopup->setVisible( cfg.preferences.enableScanPopup );
|
||||
navToolbar->widgetForAction( enableScanPopup )->setObjectName( "scanPopupButton" );
|
||||
if ( cfg.preferences.enableScanPopup && cfg.preferences.startWithScanPopupOn )
|
||||
if( cfg.preferences.enableScanPopup && cfg.preferences.startWithScanPopupOn )
|
||||
{
|
||||
enableScanPopup->setIcon( QIcon( ":/icons/wizard-selected.svg" ) );
|
||||
enableScanPopup->setChecked( true );
|
||||
}
|
||||
|
||||
|
||||
connect( enableScanPopup, SIGNAL( toggled( bool ) ),
|
||||
this, SLOT( scanEnableToggled( bool ) ) );
|
||||
|
|
Loading…
Reference in a new issue