Do not update time if top grid is invisible

This commit is contained in:
Rafał Dzięgiel
2021-02-24 18:27:40 +01:00
parent b7b1dad81c
commit d2d43db2c9
2 changed files with 5 additions and 2 deletions

View File

@@ -333,7 +333,10 @@ class ClapperWidget extends Gtk.Grid
updateTime()
{
if(!this.revealerTop.visible)
if(
!this.revealerTop.visible
|| !this.revealerTop.revealerGrid.visible
)
return null;
const currTime = GLib.DateTime.new_now_local();