Skip to content

Commit

Permalink
Explicitly open menu on context activation reason which seems necessa…
Browse files Browse the repository at this point in the history
…ry on windows.

Signed-off-by: Adam Treat <treat.adam@gmail.com>
  • Loading branch information
manyoso committed Oct 24, 2024
1 parent b36f053 commit d8ff442
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gpt4all-chat/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ Window {
window.requestActivate();
}
onActivated: function(reason) {
if (reason === SystemTrayIcon.Trigger)
if (reason === SystemTrayIcon.Context)
menu.open();
else if (reason === SystemTrayIcon.Trigger)
restore();
}

Expand Down

0 comments on commit d8ff442

Please sign in to comment.