mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-04-20 03:24:52 +00:00
fix: refresh button actually refreshes
This commit is contained in:
parent
4703ba63c9
commit
6ab2a1a22e
1 changed files with 4 additions and 4 deletions
|
@ -57,7 +57,7 @@ pub enum MainViewMsg {
|
|||
SetSelectedProfile(u32),
|
||||
ProfileSelected(u32),
|
||||
UpdateSelectedProfile(Profile),
|
||||
TickSelectedProfileTracker,
|
||||
MarkChanged,
|
||||
EditProfile,
|
||||
CreateProfile,
|
||||
DeleteProfile,
|
||||
|
@ -382,7 +382,7 @@ impl SimpleComponent for MainView {
|
|||
set_halign: gtk::Align::Start,
|
||||
set_label: "Refresh",
|
||||
connect_clicked[sender] => move |_| {
|
||||
sender.input(Self::Input::TickSelectedProfileTracker);
|
||||
sender.input(Self::Input::MarkChanged);
|
||||
}
|
||||
},
|
||||
},
|
||||
|
@ -559,8 +559,8 @@ impl SimpleComponent for MainView {
|
|||
.sender()
|
||||
.emit(InstallWivrnBoxMsg::UpdateSelectedProfile(prof.clone()));
|
||||
}
|
||||
Self::Input::TickSelectedProfileTracker => {
|
||||
self.set_selected_profile(self.selected_profile.clone());
|
||||
Self::Input::MarkChanged => {
|
||||
self.mark_all_changed();
|
||||
}
|
||||
Self::Input::UpdateProfiles(profiles, config) => {
|
||||
self.set_profiles(profiles);
|
||||
|
|
Loading…
Add table
Reference in a new issue