mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
logout dialog: Show the correct text right away
The end session dialog was waiting a second before updating its text to display the timer. It is nicer to show the correct message from the start. https://bugzilla.gnome.org/show_bug.cgi?id=702056
This commit is contained in:
parent
5e52f0e2a8
commit
2af4925d95
1 changed files with 1 additions and 0 deletions
|
|
@ -420,6 +420,7 @@ const EndSessionDialog = new Lang.Class({
|
|||
_startTimer: function() {
|
||||
let startTime = GLib.get_monotonic_time();
|
||||
this._secondsLeft = this._totalSecondsToStayOpen;
|
||||
this._updateDescription();
|
||||
|
||||
this._timerId = Mainloop.timeout_add_seconds(1, Lang.bind(this,
|
||||
function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue