mirror of
https://github.com/oleid/gnome-shell-teatime.git
synced 2022-04-29 18:53:50 +00:00
fix bug in settings considering uninitialized variable
This commit is contained in:
parent
93c04e30d9
commit
f762648433
@ -245,8 +245,9 @@ const TeaTimePrefsWidget = new Lang.Class({
|
|||||||
if (this._settings.get_string(Utils.TEATIME_ALARM_SOUND_KEY) != this.alarmSoundFile.get_uri()) {
|
if (this._settings.get_string(Utils.TEATIME_ALARM_SOUND_KEY) != this.alarmSoundFile.get_uri()) {
|
||||||
this._inhibitUpdate = true;
|
this._inhibitUpdate = true;
|
||||||
|
|
||||||
Utils.playSound(this.alarmSoundFile.get_uri());
|
let uri=this.alarmSoundFile.get_uri();
|
||||||
|
|
||||||
|
Utils.playSound(uri);
|
||||||
this._settings.set_string(Utils.TEATIME_ALARM_SOUND_KEY, uri);
|
this._settings.set_string(Utils.TEATIME_ALARM_SOUND_KEY, uri);
|
||||||
this._inhibitUpdate = false;
|
this._inhibitUpdate = false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user