diff --git a/src/app/browser/window/tab/item/page/navigation/request/identity/common/form/exit.rs b/src/app/browser/window/tab/item/page/navigation/request/identity/common/form/exit.rs index 2fa1beee..a5d12c53 100644 --- a/src/app/browser/window/tab/item/page/navigation/request/identity/common/form/exit.rs +++ b/src/app/browser/window/tab/item/page/navigation/request/identity/common/form/exit.rs @@ -3,10 +3,6 @@ use super::{ WidgetAction, }; use crate::Profile; -use adw::{ - prelude::{AdwDialogExt, AlertDialogExt, AlertDialogExtManual}, - AlertDialog, ResponseAppearance, -}; use gtk::{ glib::Uri, prelude::{ButtonExt, WidgetExt}, @@ -14,17 +10,6 @@ use gtk::{ }; use std::rc::Rc; -// Defaults - -const LABEL: &str = "Disconnect"; -const TOOLTIP_TEXT: &str = "Stop use selected identity everywhere"; -const MARGIN: i32 = 8; - -const HEADING: &str = "Disconnect"; -const BODY: &str = "Stop use selected identity for all scopes?"; -const RESPONSE_CANCEL: (&str, &str) = ("cancel", "Cancel"); -const RESPONSE_CONFIRM: (&str, &str) = ("confirm", "Confirm"); - pub trait Exit { fn exit( widget_action: &Rc, @@ -44,6 +29,20 @@ impl Exit for Button { list: &Rc, request: &Uri, ) -> Self { + use adw::{ + prelude::{AdwDialogExt, AlertDialogExt, AlertDialogExtManual}, + AlertDialog, ResponseAppearance, + }; + + const LABEL: &str = "Disconnect"; + const TOOLTIP_TEXT: &str = "Stop use selected identity everywhere"; + const MARGIN: i32 = 8; + + const HEADING: &str = "Disconnect"; + const BODY: &str = "Stop use selected identity for all scopes?"; + const RESPONSE_CANCEL: (&str, &str) = ("cancel", "Cancel"); + const RESPONSE_CONFIRM: (&str, &str) = ("confirm", "Confirm"); + // Init main widget let button = Button::builder() .label(LABEL)