Key Regeneration

This commit is contained in:
Alex Emmet 2026-05-23 02:43:40 +02:00
commit 2193583f00
3 changed files with 29 additions and 24 deletions

View file

@ -67,6 +67,11 @@ impl ConfigUtil {
self.unique = true;
}
pub fn remove(&mut self, key: &str) {
self.config.remove(key);
self.unique = true;
}
pub fn update(&mut self) {
if self.unique {
save_file("", "config.json", &self.config.to_string());