Skip to content

Commit

Permalink
don't show the clock menu entry until we have the time
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Nov 28, 2023
1 parent f5ec002 commit 3ed1cc9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion html5/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1067,8 +1067,8 @@ <h2>Xpra Bug Report</h2>
}

function init_clock(client, enabled) {
$("#clock_menu_entry").hide();
if (!enabled) {
$("#clock_menu_entry").hide();
return;
}
function update_clock() {
Expand All @@ -1095,6 +1095,7 @@ <h2>Xpra Bug Report</h2>

function wait_for_time() {
if (client.last_ping_local_time>0) {
$("#clock_menu_entry").show();
update_clock();
}
else {
Expand Down

0 comments on commit 3ed1cc9

Please sign in to comment.