From f3e96ae5d1208b472d6d31273e764f0a069af659 Mon Sep 17 00:00:00 2001 From: Aziz Nadirov Date: Mon, 17 Jun 2024 17:55:45 +0400 Subject: [PATCH] looks like fixed. --- src/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.py b/src/main.py index b8c1d22..fd4fd00 100644 --- a/src/main.py +++ b/src/main.py @@ -542,7 +542,8 @@ def saveSettings(self): self.accept() def resetSettings(self): - with self.default_settings_file.open("r") as f: + default_settings_file = Path(__file__).parent / "settings" / "default_settings.json" + with open(default_settings_file.as_posix(), "r") as f: default_settings_data = f.read() with settings_file.open("w") as f: f.write(default_settings_data)