opt: remove deprecated method setActivateWindow()

This commit is contained in:
YiFang Xiao 2024-06-14 21:48:29 +08:00
parent a767f3f030
commit 6848ebfe45

View file

@ -2756,7 +2756,6 @@ void MainWindow::toggleMainWindow( bool onlyShow )
if ( !isVisible() ) {
show();
qApp->setActiveWindow( this );
activateWindow();
raise();
shown = true;
@ -2771,10 +2770,9 @@ void MainWindow::toggleMainWindow( bool onlyShow )
shown = true;
}
else if ( !isActiveWindow() ) {
qApp->setActiveWindow( this );
activateWindow();
if ( cfg.preferences.raiseWindowOnSearch ) {
raise();
activateWindow();
}
shown = true;
}