mirror of
https://github.com/CopterExpress/clever-show.git
synced 2026-05-26 07:07:58 +00:00
lib: Add ability to write option without section
This commit is contained in:
@@ -60,7 +60,10 @@ class ConfigManager:
|
||||
return self.config[section][option]
|
||||
|
||||
def set(self, section, option, value, write=False):
|
||||
if section:
|
||||
self.config[section][option] = value
|
||||
else:
|
||||
self.config[option] = value
|
||||
if write:
|
||||
self.write()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user