Skip to content

Commit

Permalink
fix(window): correctly set toast priority
Browse files Browse the repository at this point in the history
  • Loading branch information
FineFindus committed Jan 13, 2025
1 parent f97b769 commit 388cb1c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,7 @@ impl AppWindow {
fn show_toast(&self, text: impl AsRef<str>, priority: adw::ToastPriority) {
let toast = adw::Toast::new(text.as_ref());
toast.set_priority(priority);
self.imp()
.toast_overlay
.add_toast(adw::Toast::new(text.as_ref()));
self.imp().toast_overlay.add_toast(toast);
}

/// The currently picked color, or `None` if the user hasn't picked one yet.
Expand Down

0 comments on commit 388cb1c

Please sign in to comment.