Skip to content

Commit

Permalink
#242 don't show 'shutdown' option when it isn't available
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Apr 27, 2023
1 parent a8a3d18 commit b30082d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion html5/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@
>Upload file</a
>
</li>
<li>
<li id="shutdown_menu_entry">
<a
href="#"
data-icon="exit_to_app"
Expand Down
3 changes: 3 additions & 0 deletions html5/js/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -2777,6 +2777,9 @@ class XpraClient {
this.process_xdg_menu();
}
}
if (!hello["client-shutdown"]) {
$("#shutdown_menu_entry").hide();
}

this.server_is_desktop = Boolean(hello["desktop"]);
this.server_is_shadow = Boolean(hello["shadow"]);
Expand Down

0 comments on commit b30082d

Please # to comment.