diff --git a/src/app/browser/window/tab/item/identity/gemini/widget/form/list/item.rs b/src/app/browser/window/tab/item/identity/gemini/widget/form/list/item.rs index 55994f0a..41abf82d 100644 --- a/src/app/browser/window/tab/item/identity/gemini/widget/form/list/item.rs +++ b/src/app/browser/window/tab/item/identity/gemini/widget/form/list/item.rs @@ -5,8 +5,8 @@ glib::wrapper! { pub struct Item(ObjectSubclass); } -// C-based conversion for `None` value -const PROFILE_IDENTITY_GEMINI_ID_NONE: i64 = -1; +// C-type conversion +const OPTION_NEW: i64 = -1; impl Item { // Constructors @@ -18,7 +18,7 @@ impl Item { "profile_identity_gemini_id", match profile_identity_gemini_id { Some(value) => value, - None => PROFILE_IDENTITY_GEMINI_ID_NONE, + None => OPTION_NEW, }, ) .property("title", title) @@ -31,7 +31,7 @@ impl Item { /// Additional `profile_identity_gemini_id` wrapper with `Option` value support pub fn profile_identity_gemini_id_option(&self) -> Option { match self.profile_identity_gemini_id() { - PROFILE_IDENTITY_GEMINI_ID_NONE => None, + OPTION_NEW => None, value => Some(value), } }