mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 17:45:28 +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
|
/// 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) {
|
pub fn activate(&self, request: Option<&str>, is_history: bool) {
|
||||||
self.simple_action.activate(Some(
|
self.simple_action.activate(Some(
|
||||||
&(
|
&(request.unwrap_or_default(), is_history).to_variant(),
|
||||||
match request {
|
|
||||||
Some(value) => String::from(value),
|
|
||||||
None => String::new(),
|
|
||||||
},
|
|
||||||
is_history,
|
|
||||||
)
|
|
||||||
.to_variant(),
|
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue