mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-08-03 14:49:04 +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 adw::prelude::*;
|
||||||
use gtk::{prelude::*, glib::clone};
|
use gtk::{glib::clone, prelude::*};
|
||||||
use relm4::{
|
use relm4::{
|
||||||
actions::{ActionGroupName, RelmAction, RelmActionGroup},
|
actions::{ActionGroupName, RelmAction, RelmActionGroup},
|
||||||
new_action_group, new_stateless_action,
|
new_action_group, new_stateless_action,
|
||||||
|
@ -467,16 +467,24 @@ impl SimpleComponent for StardustView {
|
||||||
|
|
||||||
let mut actions = RelmActionGroup::<StardustActionGroup>::new();
|
let mut actions = RelmActionGroup::<StardustActionGroup>::new();
|
||||||
|
|
||||||
stateless_action!(actions, BuildStardustAction, clone!(@strong sender => move |_| {
|
stateless_action!(
|
||||||
sender
|
actions,
|
||||||
.input_sender()
|
BuildStardustAction,
|
||||||
.emit(Self::Input::BuildStardust { update: false });
|
clone!(@strong sender => move |_| {
|
||||||
}));
|
sender
|
||||||
stateless_action!(actions, UpdateStardustAction, clone!(@strong sender => move |_| {
|
.input_sender()
|
||||||
sender
|
.emit(Self::Input::BuildStardust { update: false });
|
||||||
.input_sender()
|
})
|
||||||
.emit(Self::Input::BuildStardust { update: true });
|
);
|
||||||
}));
|
stateless_action!(
|
||||||
|
actions,
|
||||||
|
UpdateStardustAction,
|
||||||
|
clone!(@strong sender => move |_| {
|
||||||
|
sender
|
||||||
|
.input_sender()
|
||||||
|
.emit(Self::Input::BuildStardust { update: true });
|
||||||
|
})
|
||||||
|
);
|
||||||
|
|
||||||
root.insert_action_group(
|
root.insert_action_group(
|
||||||
StardustActionGroup::NAME,
|
StardustActionGroup::NAME,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue