Key Regeneration
This commit is contained in:
parent
16749bafb3
commit
2193583f00
3 changed files with 29 additions and 24 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Reference in a new issue