feat: Update 2 files
This commit is contained in:
@@ -100,7 +100,8 @@ int edit_config()
|
||||
if (!gConfig().is_config_set())
|
||||
return return_die("Failed to load and parse edited config file!");
|
||||
|
||||
gConfig().save_config(true);
|
||||
// Don't save_config after loading - it would rewrite the file the user just edited!
|
||||
// The config is already saved by the editor, we just validated it by loading it.
|
||||
|
||||
std::cout << "Successfully edited config file at " << config_file << std::endl;
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user