fix: trayicon scan popup icon display not correct

This commit is contained in:
Xiao YiFang 2022-08-31 21:53:56 +08:00
parent 54389a72eb
commit 92e06428f7

View file

@ -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 ) ) );