Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions dodo/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@ def show_help(self) -> None:

def raise_panel(self, p: panel.Panel) -> None:
self.tabs.setCurrentWidget(p)
# raise_() brings the window to the front; activateWindow() gives it
# keyboard focus. On macOS activateWindow() alone is not enough.
self.main_window.raise_()
self.main_window.activateWindow()
# self.main_window.setWindowState(self.main_window.windowState() ^ Qt.WindowActive)

Expand Down