mirror of
https://github.com/veeso/termscp.git
synced 2025-12-07 01:26:04 -08:00
Fixed config save and theme layout
This commit is contained in:
@@ -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))?;
|
||||
|
||||
Reference in New Issue
Block a user