chore: format

This commit is contained in:
Gabriele Musco 2023-12-23 12:49:15 +00:00
parent 356656716c
commit 1ff95867fb

View file

@ -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,