Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyifang committed Dec 27, 2024
1 parent cb56363 commit b3fe3bb
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/ui/mainwindow.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2889,9 +2889,8 @@ void MainWindow::toggleMainWindow( bool ensureShow )

if ( !isVisible() ) {
show();

activateWindow();
raise();
activateWindow();
shown = true;
}
else if ( isMinimized() ) {
Expand All @@ -2901,17 +2900,12 @@ void MainWindow::toggleMainWindow( bool ensureShow )
else {
showNormal();
}
activateWindow();
raise();
activateWindow();
shown = true;
}
else if ( !isActiveWindow() ) {
if ( wasMaximized ) {
showMaximized();
}
else {
showNormal();
}
show();
if ( cfg.preferences.raiseWindowOnSearch ) {
raise();
}
Expand Down

0 comments on commit b3fe3bb

Please sign in to comment.