mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 23:34:06 +00:00
"Auto-pronounce in Scan Pop-Up" option should not be disabled when the Scan Pop-Up is disabled.
Because users can manually show the scan pop-up via Ctrl+C+C.
This commit is contained in:
parent
68335ba349
commit
a03d4d2dde
|
@ -142,8 +142,6 @@ Preferences::Preferences( QWidget * parent, Config::Preferences const & p ):
|
||||||
ui.useWindowsPlaySound->hide();
|
ui.useWindowsPlaySound->hide();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
ui.pronounceOnLoadPopup->setEnabled( p.enableScanPopup );
|
|
||||||
|
|
||||||
ui.pronounceOnLoadMain->setChecked( p.pronounceOnLoadMain );
|
ui.pronounceOnLoadMain->setChecked( p.pronounceOnLoadMain );
|
||||||
ui.pronounceOnLoadPopup->setChecked( p.pronounceOnLoadPopup );
|
ui.pronounceOnLoadPopup->setChecked( p.pronounceOnLoadPopup );
|
||||||
|
|
||||||
|
@ -253,7 +251,6 @@ Config::Preferences Preferences::getPreferences()
|
||||||
void Preferences::enableScanPopupToggled( bool b )
|
void Preferences::enableScanPopupToggled( bool b )
|
||||||
{
|
{
|
||||||
ui.scanPopupModifiers->setEnabled( b && ui.enableScanPopupModifiers->isChecked() );
|
ui.scanPopupModifiers->setEnabled( b && ui.enableScanPopupModifiers->isChecked() );
|
||||||
ui.pronounceOnLoadPopup->setEnabled( b );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Preferences::enableScanPopupModifiersToggled( bool b )
|
void Preferences::enableScanPopupModifiersToggled( bool b )
|
||||||
|
|
Loading…
Reference in a new issue