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 931bdba commit 7cde1e1
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 @@ -1262,8 +1262,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 Down Expand Up @@ -1297,6 +1297,7 @@ <h2>Xpra Bug Report</h2>

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

0 comments on commit 7cde1e1

Please sign in to comment.