Merge branch 'no-fb' into 'main'
cli: Inform user when no feedback was found Closes #76 See merge request Librem5/feedbackd!130
This commit is contained in:
+5
-2
@@ -93,6 +93,9 @@ trigger_event (const char *name, const gchar *profile, gboolean important, gint
|
||||
g_main_loop_run (loop);
|
||||
g_main_loop_unref (loop);
|
||||
|
||||
if (lfb_event_get_end_reason (event) == LFB_EVENT_END_REASON_NOT_FOUND)
|
||||
g_print ("No feedback found for '%s' at level '%s'\n", name, lfb_get_feedback_profile ());
|
||||
|
||||
return success;
|
||||
}
|
||||
|
||||
@@ -173,9 +176,9 @@ main (int argc, char *argv[0])
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (profile && !name)
|
||||
if (profile && !name) {
|
||||
success = set_profile (profile);
|
||||
else {
|
||||
} else {
|
||||
if (!name)
|
||||
name = g_strdup (DEFAULT_EVENT);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user