Let scanPopup always constructed

Before: Construst Scanpopup only when both enableClipboardHotkey and enableScanPopup are true

Now: Always construct ScanPopup so that users can freely enable Copy->ScanPopup through navbar or tray
This commit is contained in:
shenlebantongying 2022-11-19 22:35:06 -05:00
parent 8232bc208d
commit e0c193bcb6

View file

@ -1497,10 +1497,6 @@ void MainWindow::makeScanPopup()
{
scanPopup.reset();
// Later this will be remove, we want singluar way to toggling ScanPopup
if ( !cfg.preferences.enableClipboardHotkey )
return;
scanPopup = new ScanPopup( 0, cfg, articleNetMgr, audioPlayerFactory.player(),
dictionaries, groupInstances, history );