diff options
author | farkasdvd <30418389+farkasdvd@users.noreply.github.com> | 2021-05-26 00:07:13 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-08-29 14:38:27 +0200 |
commit | 0898d70491061913fcadfe65d7cf1bf016d6d241 (patch) | |
tree | 859f5d9db20e9243699cf601c41bc8d1ce35f28d /src | |
parent | 40eb68ee00f8cd45e6b6f0fa9eb77c2e4e106326 (diff) | |
download | ayatana-indicator-datetime-0898d70491061913fcadfe65d7cf1bf016d6d241.tar.gz ayatana-indicator-datetime-0898d70491061913fcadfe65d7cf1bf016d6d241.tar.bz2 ayatana-indicator-datetime-0898d70491061913fcadfe65d7cf1bf016d6d241.zip |
Alarm snoozes after timeout (#29)
Changes the default behavior for an alarm timeout from "no action" to "snooze".
Diffstat (limited to 'src')
-rw-r--r-- | src/snap.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/snap.cpp b/src/snap.cpp index a55f760..00c4743 100644 --- a/src/snap.cpp +++ b/src/snap.cpp @@ -176,7 +176,7 @@ public: b.set_closed_callback([appointment, alarm, on_response, sound, awake, haptic] (const std::string& action){ Snap::Response response; - if (action == ACTION_SNOOZE) + if ((action == ACTION_SNOOZE) || (appointment.is_ubuntu_alarm() && action.empty())) response = Snap::Response::Snooze; else if (action == ACTION_SHOW_APP) response = Snap::Response::ShowApp; |