mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 07:42:23 +02:00
Do not update time if top grid is invisible
This commit is contained in:
@@ -182,7 +182,7 @@ class ClapperRevealerTop extends CustomRevealer
|
||||
: Gtk.RevealerTransitionType.CROSSFADE;
|
||||
|
||||
/* Changing transition in middle can have dire consequences,
|
||||
so change only when not in transition */
|
||||
* so change only when not in transition */
|
||||
if(this.reveal_child === this.child_revealed)
|
||||
this.transition_type = this._requestedTransition;
|
||||
}
|
||||
|
@@ -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();
|
||||
|
Reference in New Issue
Block a user