Skip to content

Commit

Permalink
replacing_enabled shouldn't affect tag replacements.
Browse files Browse the repository at this point in the history
  • Loading branch information
Toqozz committed Nov 19, 2021
1 parent b448f70 commit 3bc75a8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion aur/wired/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

pkgname=wired
_pkgname=wired-notify
pkgver=0.9.3
pkgver=0.9.4
pkgrel=1
pkgdesc="Lightweight notification daemon with highly customizable layout blocks, written in Rust."
arch=('x86_64' 'i686')
Expand Down
10 changes: 5 additions & 5 deletions src/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,12 @@ impl NotifyWindowManager {
let mut maybe_window = None;
for m in self.monitor_windows.values_mut() {
for w in m {
if w.notification.id == notification.id ||
(w.notification.app_name == notification.app_name &&
w.notification.tag.is_some() &&
w.notification.tag == notification.tag) {
if (w.notification.id == notification.id && Config::get().replacing_enabled) ||
(w.notification.app_name == notification.app_name &&
w.notification.tag.is_some() &&
w.notification.tag == notification.tag) {

maybe_window = Some(w);
maybe_window = Some(w)
}
}
}
Expand Down

0 comments on commit 3bc75a8

Please sign in to comment.