[fractal/fractal-next] account-settings: Replace AdwToast with Toast
- From: Julian Sparber <jsparber src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [fractal/fractal-next] account-settings: Replace AdwToast with Toast
- Date: Wed, 23 Feb 2022 17:06:55 +0000 (UTC)
commit 6f8ead2d15df5b267f62cf146e18955b649d5c1b
Author: Kévin Commaille <zecakeh tedomum fr>
Date: Wed Feb 16 15:38:37 2022 +0100
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 e5682af7d..cf04106ca 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::<adw::PreferencesWindow>().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());
}
},
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]