mirror of
https://github.com/genodelabs/genode.git
synced 2025-05-07 19:18:08 +00:00
sculpt: reset update dialog on changed sculpt fs
When changing the used sculpt partiton, the dialog state should be cleared from the information of the original selection. Issue #4820
This commit is contained in:
parent
43d51c4499
commit
01b198657d
@ -865,11 +865,13 @@ struct Sculpt::Main : Input_event_handler,
|
|||||||
|
|
||||||
void use(Storage_target const &target) override
|
void use(Storage_target const &target) override
|
||||||
{
|
{
|
||||||
|
_system_dialog.reset_update_dialog();
|
||||||
_download_queue.reset();
|
_download_queue.reset();
|
||||||
_storage.use(target);
|
_storage.use(target);
|
||||||
|
|
||||||
/* hide system panel button and system dialog when "un-using" */
|
/* hide system panel button and system dialog when "un-using" */
|
||||||
_panel_menu_view.generate();
|
_panel_menu_view.generate();
|
||||||
|
_system_menu_view.generate();
|
||||||
_handle_window_layout();
|
_handle_window_layout();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -358,6 +358,12 @@ struct Sculpt::Software_update_dialog
|
|||||||
void handle_key(Codepoint c) { _users.handle_key(c); }
|
void handle_key(Codepoint c) { _users.handle_key(c); }
|
||||||
|
|
||||||
void sanitize_user_selection() { _users.sanitize_unfold_state(); }
|
void sanitize_user_selection() { _users.sanitize_unfold_state(); }
|
||||||
|
|
||||||
|
void reset()
|
||||||
|
{
|
||||||
|
_last_installed = { };
|
||||||
|
_last_selected = { };
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* _VIEW__SOFTWARE_UPDATE_DIALOG_H_ */
|
#endif /* _VIEW__SOFTWARE_UPDATE_DIALOG_H_ */
|
||||||
|
@ -139,6 +139,8 @@ struct Sculpt::System_dialog : Noncopyable, Dialog
|
|||||||
void handle_key(Codepoint c) { _update_dialog.handle_key(c); }
|
void handle_key(Codepoint c) { _update_dialog.handle_key(c); }
|
||||||
|
|
||||||
void sanitize_user_selection() { _update_dialog.sanitize_user_selection(); }
|
void sanitize_user_selection() { _update_dialog.sanitize_user_selection(); }
|
||||||
|
|
||||||
|
void reset_update_dialog() { _update_dialog.reset(); }
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* _VIEW__SYSTEM_DIALOG_H_ */
|
#endif /* _VIEW__SYSTEM_DIALOG_H_ */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user