AppSettings-Dialog um PDF-Projekte erweitert
This commit is contained in:
+3
-3
@@ -11,7 +11,7 @@ app_name = "DocuMentor"
|
||||
|
||||
if platform == "win32":
|
||||
config_path = f"%APPDATA%\\{app_name}\\config.json"
|
||||
elif platform in ("linux", "linux2"):
|
||||
elif platform in ("linux", "linux2"):
|
||||
config_path = f"~/.config/{app_name}/config.json"
|
||||
elif platform == "darwin":
|
||||
config_path = f"~/Library/Application Support/{app_name}/͏͏͏͏config.json"
|
||||
@@ -90,8 +90,8 @@ class AppSettings(BaseSettings):
|
||||
|
||||
def save(self):
|
||||
global config_path
|
||||
# Ordner existert nicht
|
||||
if not config_path.parent.exists():
|
||||
# Ordner existert nicht
|
||||
config_path.parent.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
# Konfiguration speichern
|
||||
@@ -100,7 +100,7 @@ class AppSettings(BaseSettings):
|
||||
|
||||
|
||||
app_settings = AppSettings()
|
||||
print(app_settings)
|
||||
|
||||
|
||||
class PdfProjectSettings(BaseSettings):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user