feat: Update 2 files
All checks were successful
Build-Test-Publish / build (linux/amd64) (push) Successful in 44s
Build-Test-Publish / build (linux/arm64) (push) Successful in 1m19s

This commit is contained in:
Your Name
2025-08-25 20:39:36 +12:00
parent 5d15b92dbf
commit e8efe73f4a
2 changed files with 5 additions and 14 deletions

View File

@@ -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;