MainWindow, Config: Minor change.

results
Pierre-Antoine Rouby 2023-07-04 13:32:42 +02:00
parent e7099bfb86
commit adc7736306
2 changed files with 2 additions and 2 deletions

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"

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 = ""