Skip to content

Commit

Permalink
Merge pull request #346 from jmlich/pop-after-timer
Browse files Browse the repository at this point in the history
Pop after timer refresh daemon
  • Loading branch information
piggz authored Mar 1, 2024
2 parents 62b885a + 525e3de commit 8786803
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ui/qml/pages/Settings-alarms.qml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ PagePL {
text: qsTr("Save Settings")
onClicked: {
saveSettings();
app.pages.pop();
}
}

Expand All @@ -69,6 +68,7 @@ PagePL {
running: false
onTriggered: {
DaemonInterfaceInstance.applyDeviceSetting(Amazfish.SETTING_ALARMS);
app.pages.pop();
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion ui/qml/pages/Settings-device.qml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ PagePL {
text: qsTr("Save Settings")
onClicked: {
saveSettings();
app.pages.pop();
}
}
}
Expand All @@ -122,6 +121,7 @@ PagePL {
DaemonInterfaceInstance.applyDeviceSetting(Amazfish.SETTING_DEVICE_TIME);
DaemonInterfaceInstance.applyDeviceSetting(Amazfish.SETTING_DEVICE_UNIT);
DaemonInterfaceInstance.applyDeviceSetting(Amazfish.SETTING_DISCONNECT_NOTIFICATION);
app.pages.pop();
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion ui/qml/pages/Settings-huami-shortcuts.qml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ PagePL {
onClicked: {
saveDisplayItems();
saveSettings();
app.pages.pop();
}
}

Expand All @@ -70,6 +69,7 @@ PagePL {
running: false
onTriggered: {
DaemonInterfaceInstance.applyDeviceSetting(Amazfish.SETTING_DEVICE_DISPLAY_ITEMS);
app.pages.pop();
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion ui/qml/pages/Settings-profile.qml
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,6 @@ PagePL {
text: qsTr("Save Profile")
onClicked: {
saveProfile();
app.pages.pop();
}
}
Timer {
Expand All @@ -225,6 +224,7 @@ PagePL {
DaemonInterfaceInstance.applyDeviceSetting(Amazfish.SETTING_USER_DISPLAY_ON_LIFT);
DaemonInterfaceInstance.applyDeviceSetting(Amazfish.SETTING_USER_ALL_DAY_HRM);
DaemonInterfaceInstance.applyDeviceSetting(Amazfish.SETTING_USER_HRM_SLEEP_DETECTION)
app.pages.pop();
}
}
}
Expand Down

0 comments on commit 8786803

Please sign in to comment.