Rename hide_duplicates_count -> hide_duplicate_count
This commit is contained in:
parent
ceddf57a31
commit
de20697a69
4
dunstrc
4
dunstrc
@ -117,8 +117,8 @@
|
|||||||
# Merge multiple notifications with the same content
|
# Merge multiple notifications with the same content
|
||||||
stack_duplicates = true
|
stack_duplicates = true
|
||||||
|
|
||||||
# Hide count of the merged notifications with the same content
|
# Hide the count of merged notifications with the same content
|
||||||
hide_duplicates_count = false
|
hide_duplicate_count = false
|
||||||
|
|
||||||
# Should a notification popped up from history be sticky or timeout
|
# Should a notification popped up from history be sticky or timeout
|
||||||
# as if it would normally do.
|
# as if it would normally do.
|
||||||
|
@ -597,7 +597,7 @@ void notification_update_text_to_render(notification *n)
|
|||||||
char *msg = g_strchomp(n->msg);
|
char *msg = g_strchomp(n->msg);
|
||||||
|
|
||||||
/* print dup_count and msg */
|
/* print dup_count and msg */
|
||||||
if ((n->dup_count > 0 && !settings.hide_duplicates_count)
|
if ((n->dup_count > 0 && !settings.hide_duplicate_count)
|
||||||
&& (n->actions || n->urls) && settings.show_indicators) {
|
&& (n->actions || n->urls) && settings.show_indicators) {
|
||||||
buf = g_strdup_printf("(%d%s%s) %s",
|
buf = g_strdup_printf("(%d%s%s) %s",
|
||||||
n->dup_count,
|
n->dup_count,
|
||||||
@ -607,7 +607,7 @@ void notification_update_text_to_render(notification *n)
|
|||||||
buf = g_strdup_printf("(%s%s) %s",
|
buf = g_strdup_printf("(%s%s) %s",
|
||||||
n->actions ? "A" : "",
|
n->actions ? "A" : "",
|
||||||
n->urls ? "U" : "", msg);
|
n->urls ? "U" : "", msg);
|
||||||
} else if (n->dup_count > 0 && !settings.hide_duplicates_count) {
|
} else if (n->dup_count > 0 && !settings.hide_duplicate_count) {
|
||||||
buf = g_strdup_printf("(%d) %s", n->dup_count, msg);
|
buf = g_strdup_printf("(%d) %s", n->dup_count, msg);
|
||||||
} else {
|
} else {
|
||||||
buf = g_strdup(msg);
|
buf = g_strdup(msg);
|
||||||
|
@ -249,10 +249,10 @@ void load_settings(char *cmdline_config_path)
|
|||||||
"When should the age of the notification be displayed?"
|
"When should the age of the notification be displayed?"
|
||||||
);
|
);
|
||||||
|
|
||||||
settings.hide_duplicates_count = option_get_bool(
|
settings.hide_duplicate_count = option_get_bool(
|
||||||
"global",
|
"global",
|
||||||
"hide_duplicates_count", "-hide_duplicates_count", false,
|
"hide_duplicate_count", "-hide_duplicate_count", false,
|
||||||
"Hide count of the merged notifications with the same content"
|
"Hide the count of merged notifications with the same content"
|
||||||
);
|
);
|
||||||
|
|
||||||
settings.sticky_history = option_get_bool(
|
settings.sticky_history = option_get_bool(
|
||||||
|
@ -12,7 +12,7 @@ typedef struct _settings {
|
|||||||
bool print_notifications;
|
bool print_notifications;
|
||||||
enum markup_mode markup;
|
enum markup_mode markup;
|
||||||
bool stack_duplicates;
|
bool stack_duplicates;
|
||||||
bool hide_duplicates_count;
|
bool hide_duplicate_count;
|
||||||
char *font;
|
char *font;
|
||||||
char *normbgcolor;
|
char *normbgcolor;
|
||||||
char *normfgcolor;
|
char *normfgcolor;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user