aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfarkasdvd <30418389+farkasdvd@users.noreply.github.com>2021-05-26 00:07:13 +0200
committerRobert Tari <robert@tari.in>2021-07-09 03:59:22 +0200
commit7c5e7e737ab1c68fb3695ff8ff9ea37883fc3888 (patch)
tree896f44e2965b1229bcb39bc50345f83847235c0e
parente4b4a10a52805cc78a351f8b08b56d81d5a42b75 (diff)
downloadayatana-indicator-datetime-7c5e7e737ab1c68fb3695ff8ff9ea37883fc3888.tar.gz
ayatana-indicator-datetime-7c5e7e737ab1c68fb3695ff8ff9ea37883fc3888.tar.bz2
ayatana-indicator-datetime-7c5e7e737ab1c68fb3695ff8ff9ea37883fc3888.zip
Alarm snoozes after timeout (#29)
Changes the default behavior for an alarm timeout from "no action" to "snooze".
-rw-r--r--src/snap.cpp2
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;