mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-29 23:32:04 +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;
|
: Gtk.RevealerTransitionType.CROSSFADE;
|
||||||
|
|
||||||
/* Changing transition in middle can have dire consequences,
|
/* 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)
|
if(this.reveal_child === this.child_revealed)
|
||||||
this.transition_type = this._requestedTransition;
|
this.transition_type = this._requestedTransition;
|
||||||
}
|
}
|
||||||
|
@@ -333,7 +333,10 @@ class ClapperWidget extends Gtk.Grid
|
|||||||
|
|
||||||
updateTime()
|
updateTime()
|
||||||
{
|
{
|
||||||
if(!this.revealerTop.visible)
|
if(
|
||||||
|
!this.revealerTop.visible
|
||||||
|
|| !this.revealerTop.revealerGrid.visible
|
||||||
|
)
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
const currTime = GLib.DateTime.new_now_local();
|
const currTime = GLib.DateTime.new_now_local();
|
||||||
|
Reference in New Issue
Block a user