mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-04-20 11:35:48 +00:00
chore: format
This commit is contained in:
parent
356656716c
commit
1ff95867fb
1 changed files with 19 additions and 11 deletions
|
@ -14,7 +14,7 @@ use crate::{
|
|||
},
|
||||
};
|
||||
use adw::prelude::*;
|
||||
use gtk::{prelude::*, glib::clone};
|
||||
use gtk::{glib::clone, prelude::*};
|
||||
use relm4::{
|
||||
actions::{ActionGroupName, RelmAction, RelmActionGroup},
|
||||
new_action_group, new_stateless_action,
|
||||
|
@ -467,16 +467,24 @@ impl SimpleComponent for StardustView {
|
|||
|
||||
let mut actions = RelmActionGroup::<StardustActionGroup>::new();
|
||||
|
||||
stateless_action!(actions, BuildStardustAction, clone!(@strong sender => move |_| {
|
||||
sender
|
||||
.input_sender()
|
||||
.emit(Self::Input::BuildStardust { update: false });
|
||||
}));
|
||||
stateless_action!(actions, UpdateStardustAction, clone!(@strong sender => move |_| {
|
||||
sender
|
||||
.input_sender()
|
||||
.emit(Self::Input::BuildStardust { update: true });
|
||||
}));
|
||||
stateless_action!(
|
||||
actions,
|
||||
BuildStardustAction,
|
||||
clone!(@strong sender => move |_| {
|
||||
sender
|
||||
.input_sender()
|
||||
.emit(Self::Input::BuildStardust { update: false });
|
||||
})
|
||||
);
|
||||
stateless_action!(
|
||||
actions,
|
||||
UpdateStardustAction,
|
||||
clone!(@strong sender => move |_| {
|
||||
sender
|
||||
.input_sender()
|
||||
.emit(Self::Input::BuildStardust { update: true });
|
||||
})
|
||||
);
|
||||
|
||||
root.insert_action_group(
|
||||
StardustActionGroup::NAME,
|
||||
|
|
Loading…
Add table
Reference in a new issue