mirror of
https://github.com/oleid/gnome-shell-teatime.git
synced 2022-04-29 18:53:50 +00:00
fixed warning when loading image file
This commit is contained in:
parent
2bb068379e
commit
74f2f1703b
@ -59,11 +59,13 @@ const TeaTimeFullscreenNotification = new Lang.Class({
|
|||||||
Gio.FileQueryInfoFlags.NONE,
|
Gio.FileQueryInfoFlags.NONE,
|
||||||
null);
|
null);
|
||||||
let info;
|
let info;
|
||||||
while (info = enumerator.next_file(null)) {
|
info = enumerator.next_file(null);
|
||||||
|
while ( info != null ) {
|
||||||
let filename = info.get_name();
|
let filename = info.get_name();
|
||||||
if (filename.match(/^cup.*/)) {
|
if (filename.match(/^cup.*/)) {
|
||||||
this._textureFiles.push(datadir.get_child(filename).get_path());
|
this._textureFiles.push(datadir.get_child(filename).get_path());
|
||||||
}
|
}
|
||||||
|
info = enumerator.next_file(null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this._textureFiles.sort();
|
this._textureFiles.sort();
|
||||||
@ -132,7 +134,7 @@ const TeaTime = new Lang.Class({
|
|||||||
|
|
||||||
this.actor.add_actor(this._logo);
|
this.actor.add_actor(this._logo);
|
||||||
|
|
||||||
this._dt = 4;
|
this._dt = 1;
|
||||||
this._idleTimeout = null;
|
this._idleTimeout = null;
|
||||||
|
|
||||||
this._createMenu();
|
this._createMenu();
|
||||||
|
Loading…
Reference in New Issue
Block a user