mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
update const name
This commit is contained in:
parent
564b02c0f5
commit
69b879540d
1 changed files with 4 additions and 4 deletions
|
|
@ -5,8 +5,8 @@ glib::wrapper! {
|
|||
pub struct Item(ObjectSubclass<imp::Item>);
|
||||
}
|
||||
|
||||
// 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<i64> {
|
||||
match self.profile_identity_gemini_id() {
|
||||
PROFILE_IDENTITY_GEMINI_ID_NONE => None,
|
||||
OPTION_NEW => None,
|
||||
value => Some(value),
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue