Revert "Schedule page: Force valid sunrise and sunset times"

This reverts commit 5760188816.
This commit is contained in:
Romain Vigier
2022-11-04 10:26:48 +01:00
parent 612575094a
commit 6cd5507143
2 changed files with 0 additions and 12 deletions
-2
View File
@@ -30,7 +30,6 @@ SPDX-License-Identifier: GPL-3.0-or-later
<property name="margin-top">12</property>
<property name="margin-bottom">12</property>
<property name="valign">center</property>
<signal name="notify::time" handler="onSunriseTimeChanged"/>
</object>
</child>
</object>
@@ -43,7 +42,6 @@ SPDX-License-Identifier: GPL-3.0-or-later
<property name="margin-top">12</property>
<property name="margin-bottom">12</property>
<property name="valign">center</property>
<signal name="notify::time" handler="onSunsetTimeChanged"/>
</object>
</child>
</object>
-10
View File
@@ -34,14 +34,4 @@ var SchedulePage = GObject.registerClass({
});
this._keyboard_shortcut_button.keybinding = settings.get_strv('nightthemeswitcher-ondemand-keybinding')[0];
}
onSunriseTimeChanged(_chooser) {
if (this._schedule_sunrise_time_chooser.time >= this._schedule_sunset_time_chooser.time)
this._schedule_sunset_time_chooser.time = this._schedule_sunrise_time_chooser.time + 1 / 60;
}
onSunsetTimeChanged(_chooser) {
if (this._schedule_sunset_time_chooser.time <= this._schedule_sunrise_time_chooser.time)
this._schedule_sunrise_time_chooser.time = this._schedule_sunset_time_chooser.time - 1 / 60;
}
});