Resolve "Readme and other PAGES do not load."

Readme, release information, and other PAGES do not load and display.

Fixed a bug that the file name was not assigned when default_locale was used.
This commit is contained in:
Masato TOYOSHIMA
2025-02-03 08:26:13 +09:00
parent b18049a45e
commit 308055dbdb
+1 -1
View File
@@ -374,7 +374,7 @@ class Hello(Gtk.Window):
"""
filename = f"{self.preferences["data_path"]}/pages/{self.usr_prefs["locale"]}/{name}"
if not os.path.isfile(filename):
f"{self.preferences["data_path"]}/pages/{self.preferences["default_locale"]}/{name}"
filename = f"{self.preferences["data_path"]}/pages/{self.preferences["default_locale"]}/{name}"
try:
with open(filename, "r") as fil:
return fil.read()