v1.1.4 - Fixed extra metadata information not being saved to M4B files

This commit is contained in:
Deniz Şafak
2025-07-16 07:14:10 +03:00
parent 0b15633995
commit 5f5dc85ae0
5 changed files with 50 additions and 23 deletions
+3 -2
View File
@@ -2822,14 +2822,15 @@ class abogen(QWidget):
def restart_app(self):
from PyQt5.QtCore import QProcess
import sys
exe = sys.executable
args = sys.argv
# On Windows, use .exe if available
if platform.system() == "Windows":
script_path = args[0]
if not script_path.lower().endswith('.exe'):
exe_path = os.path.splitext(script_path)[0] + '.exe'
if not script_path.lower().endswith(".exe"):
exe_path = os.path.splitext(script_path)[0] + ".exe"
if os.path.exists(exe_path):
args[0] = exe_path