Merge pull request #401 from bebehei/flickerless-replace
Update notification attributes upon direct replace
This commit is contained in:
commit
a56bdd18c1
@ -620,6 +620,9 @@ bool notification_replace_by_id(notification *new)
|
|||||||
notification *old = iter->data;
|
notification *old = iter->data;
|
||||||
if (old->id == new->id) {
|
if (old->id == new->id) {
|
||||||
iter->data = new;
|
iter->data = new;
|
||||||
|
new->start = time(NULL);
|
||||||
|
new->dup_count = old->dup_count;
|
||||||
|
notification_run_script(new);
|
||||||
history_push(old);
|
history_push(old);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -631,6 +634,7 @@ bool notification_replace_by_id(notification *new)
|
|||||||
notification *old = iter->data;
|
notification *old = iter->data;
|
||||||
if (old->id == new->id) {
|
if (old->id == new->id) {
|
||||||
iter->data = new;
|
iter->data = new;
|
||||||
|
new->dup_count = old->dup_count;
|
||||||
history_push(old);
|
history_push(old);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user