mirror of
https://github.com/profanity-im/profanity.git
synced 2025-02-02 15:08:15 -05:00
Fixed time preference display
This commit is contained in:
parent
46e2f11b93
commit
b63ede7964
@ -955,20 +955,16 @@ cons_time_setting(void)
|
||||
{
|
||||
char *pref_time = prefs_get_string(PREF_TIME);
|
||||
if (g_strcmp0(pref_time, "off") == 0)
|
||||
cons_show("Time (/time) : OFF");
|
||||
cons_show("Time main (/time) : OFF");
|
||||
else
|
||||
cons_show("Time (/time) : %s", pref_time);
|
||||
|
||||
cons_show("Time main (/time) : %s", pref_time);
|
||||
prefs_free_string(pref_time);
|
||||
|
||||
char *pref_time_statusbar = prefs_get_string(PREF_TIME_STATUSBAR);
|
||||
if (g_strcmp0(pref_time_statusbar, "minutes") == 0)
|
||||
cons_show("Time statusbar (/time) : minutes");
|
||||
else if (g_strcmp0(pref_time_statusbar, "off") == 0)
|
||||
if (g_strcmp0(pref_time_statusbar, "off") == 0)
|
||||
cons_show("Time statusbar (/time) : OFF");
|
||||
else
|
||||
cons_show("Time statusbar (/time) : seconds");
|
||||
|
||||
cons_show("Time statusbar (/time) : %s", pref_time_statusbar);
|
||||
prefs_free_string(pref_time_statusbar);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user