From 6f8ead2d15df5b267f62cf146e18955b649d5c1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Wed, 16 Feb 2022 15:38:37 +0100 Subject: [PATCH] account-settings: Replace AdwToast with Toast --- src/session/account_settings/devices_page/device_row.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/session/account_settings/devices_page/device_row.rs b/src/session/account_settings/devices_page/device_row.rs index e5682af7..cf04106c 100644 --- a/src/session/account_settings/devices_page/device_row.rs +++ b/src/session/account_settings/devices_page/device_row.rs @@ -5,7 +5,7 @@ use log::error; use super::Device; use crate::{ - components::{AuthError, SpinnerButton}, + components::{AuthError, SpinnerButton, Toast}, spawn, }; @@ -168,7 +168,7 @@ impl DeviceRow { if let Some(adw_window) = window.and_then(|w| w.downcast::().ok()) { let device_name = device.display_name(); let error_message = gettext!("Failed to delete device “{}”", device_name); - adw_window.add_toast(&adw::Toast::new(&error_message)); + adw_window.add_toast(&Toast::new(&error_message).into()); } }, }