Skip to content

Commit 93f0ae3

Browse files
authored
Merge pull request #814 from ooni/app-name-on-tray
App name on tray menu. Make window visible on deeplink.
2 parents f98ff3a + 1708824 commit 93f0ae3

File tree

1 file changed

+9
-1
lines changed
  • composeApp/src/desktopMain/kotlin/org/ooni/probe

1 file changed

+9
-1
lines changed

composeApp/src/desktopMain/kotlin/org/ooni/probe/Main.kt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ fun main(args: Array<String>) {
8282
dependencies = dependencies,
8383
deepLink = deepLink,
8484
onDeeplinkHandled = {
85+
if (!isWindowVisible) {
86+
isWindowVisible = true
87+
}
8588
deepLink?.let {
8689
deepLinkFlow.tryEmit(null)
8790
}
@@ -96,14 +99,19 @@ fun main(args: Array<String>) {
9699
icon = painterResource(trayIcon),
97100
tooltip = stringResource(Res.string.app_name),
98101
menu = {
102+
Item(
103+
text = stringResource(Res.string.app_name),
104+
enabled = false,
105+
onClick = {},
106+
)
99107
if (runBackgroundState !is RunBackgroundState.Idle) {
100108
Item(
101109
text = runBackgroundState.text(),
102110
enabled = false,
103111
onClick = {},
104112
)
105-
Separator()
106113
}
114+
Separator()
107115
Item(
108116
stringResource(Res.string.Desktop_OpenApp),
109117
onClick = {

0 commit comments

Comments
 (0)