mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
Show message on /prefs desktop when notifications not supported by the build
This commit is contained in:
parent
6c980969e0
commit
c8b524d9c8
@ -944,6 +944,18 @@ _cons_show_ui_prefs(void)
|
|||||||
static void
|
static void
|
||||||
_cons_notify_setting(void)
|
_cons_notify_setting(void)
|
||||||
{
|
{
|
||||||
|
gboolean notify_enabled = FALSE;
|
||||||
|
#ifdef HAVE_OSXNOTIFY
|
||||||
|
notify_enabled = TRUE;
|
||||||
|
#endif
|
||||||
|
#ifdef HAVE_LIBNOTIFY
|
||||||
|
notify_enabled = TRUE;
|
||||||
|
#endif
|
||||||
|
#ifdef PLATFORM_CYGWIN
|
||||||
|
notify_enabled = TRUE;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
if (notify_enabled) {
|
||||||
if (prefs_get_boolean(PREF_NOTIFY_MESSAGE))
|
if (prefs_get_boolean(PREF_NOTIFY_MESSAGE))
|
||||||
cons_show("Messages (/notify message) : ON");
|
cons_show("Messages (/notify message) : ON");
|
||||||
else
|
else
|
||||||
@ -1007,6 +1019,9 @@ _cons_notify_setting(void)
|
|||||||
} else {
|
} else {
|
||||||
cons_show("Reminder period (/notify remind) : %d seconds", remind_period);
|
cons_show("Reminder period (/notify remind) : %d seconds", remind_period);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
cons_show("Notification support was not included in this build.");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user