Fixed config save and theme layout

This commit is contained in:
veeso
2021-07-15 12:33:15 +02:00
parent 4093ba169c
commit 8277c80860
3 changed files with 17 additions and 11 deletions

View File

@@ -39,10 +39,16 @@ impl SetupActivity {
/// ### action_save_config
///
/// Save configuration
pub(super) fn action_save_all(&mut self) -> Result<(), String> {
pub(super) fn action_save_config(&mut self) -> Result<(), String> {
// Collect input values
self.collect_input_values();
self.save_config()?;
self.save_config()
}
/// ### action_save_theme
///
/// Save configuration
pub(super) fn action_save_theme(&mut self) -> Result<(), String> {
// save theme
self.collect_styles()
.map_err(|e| format!("'{}' has an invalid color", e))?;