mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
enshort construction
This commit is contained in:
parent
ed1dbd421c
commit
78957ff85b
1 changed files with 1 additions and 8 deletions
|
|
@ -34,14 +34,7 @@ impl Load {
|
|||
/// with formatted for this action [Variant](https://docs.gtk.org/glib/struct.Variant.html) value
|
||||
pub fn activate(&self, request: Option<&str>, is_history: bool) {
|
||||
self.simple_action.activate(Some(
|
||||
&(
|
||||
match request {
|
||||
Some(value) => String::from(value),
|
||||
None => String::new(),
|
||||
},
|
||||
is_history,
|
||||
)
|
||||
.to_variant(),
|
||||
&(request.unwrap_or_default(), is_history).to_variant(),
|
||||
));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue