Skip to content

Commit 31b26e7

Browse files
committed
frontend/frame: Clear app menu when app is resumed.
1 parent e36ca23 commit 31b26e7

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

frontend/src/components/Frame.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,18 @@ export class Frame extends Component {
5454
this.worker.terminate();
5555
this.startWorker();
5656
this.show_spinner.value = true;
57+
58+
const t = i18n.t;
59+
Median.sidebar.setItems({
60+
enabled: true,
61+
persist: true,
62+
items: [
63+
{
64+
label: t("app.close_remote_access"),
65+
url: "javascript:window.close()"
66+
}
67+
]
68+
})
5769
}, {signal: this.abort.signal});
5870

5971
// this is used by the app to close the remote connection via the native app menu.

0 commit comments

Comments
 (0)