mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
13 lines
288 B
Rust
13 lines
288 B
Rust
use gtk::{gio::SimpleAction, glib::uuid_string_random};
|
|
|
|
pub trait Reload {
|
|
fn reload() -> Self;
|
|
}
|
|
|
|
impl Reload for SimpleAction {
|
|
fn reload() -> Self {
|
|
let reload = SimpleAction::new(&uuid_string_random(), None);
|
|
reload.set_enabled(false);
|
|
reload
|
|
}
|
|
}
|