From e0c193bcb6e2227c811c6a6e33432458a7f3245e Mon Sep 17 00:00:00 2001 From: shenlebantongying Date: Sat, 19 Nov 2022 22:35:06 -0500 Subject: [PATCH] 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 --- mainwindow.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/mainwindow.cc b/mainwindow.cc index dd3766c7..3ad9d9ed 100644 --- a/mainwindow.cc +++ b/mainwindow.cc @@ -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 );