feat: clipboard tracking

This commit is contained in:
Xiao YiFang 2022-06-24 21:30:45 +08:00
parent 7eb603a9c5
commit 3d5f3d6616
2 changed files with 7 additions and 1 deletions

View file

@ -2846,7 +2846,12 @@ between classic and school orthography in cyrillic)</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../mainwindow.cc" line="471"/> <location filename="../mainwindow.cc" line="411"/>
<source>Tracking Clipboard</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cc" line="504"/>
<source>Add all tabs to Favorites</source> <source>Add all tabs to Favorites</source>
<translation></translation> <translation></translation>
</message> </message>

View file

@ -411,6 +411,7 @@ MainWindow::MainWindow( Config::Class & cfg_ ):
actTrackingClipboard = trayIconMenu.addAction( tr( "Tracking Clipboard" ) ); actTrackingClipboard = trayIconMenu.addAction( tr( "Tracking Clipboard" ) );
actTrackingClipboard->setCheckable(true); actTrackingClipboard->setCheckable(true);
actTrackingClipboard->setChecked(cfg.preferences.trackClipboardChanges); actTrackingClipboard->setChecked(cfg.preferences.trackClipboardChanges);
actTrackingClipboard->setVisible( cfg.preferences.enableScanPopup );
connect( actTrackingClipboard , SIGNAL( triggered(bool) ), connect( actTrackingClipboard , SIGNAL( triggered(bool) ),
this, SLOT( trackingClipboard(bool) ) ); this, SLOT( trackingClipboard(bool) ) );
trayIconMenu.addSeparator(); trayIconMenu.addSeparator();