MainWindow, Config: Minor change.

This commit is contained in:
Pierre-Antoine Rouby committed 2023-07-04 13:32:42 +02:00
1 parent e7099bfb86
commit adc7736306
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -229,7 +229,7 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
"", "Pamhyr(*.pamhyr)"
)
if file_name[-4:] == ".pamhyr":
if file_name.rsplit(".", 1)[-1] == "pamhyr":
self.model.filename = file_name
else:
self.model.filename = file_name + ".pamhyr"
+1 -1
View File
@@ -218,7 +218,7 @@ class Config(SQL):
self.backup_max = 10
# Editor
self.editor = "emacs @file"
self.editor = "editor @file"
# Languages
self.lang = ""