2 Commits

Author SHA1 Message Date
62b8da2dc4 chore(changelog): update
Some checks failed
Code and build check / Check code (push) Successful in 1m48s
Code and build check / Build with uv (push) Successful in 56s
Build AppImage, Arch and Fedora Packages / Build AppImage (push) Successful in 3m33s
Build AppImage, Arch and Fedora Packages / Build Arch Package (push) Successful in 1m37s
Build AppImage, Arch and Fedora Packages / Build Fedora RPM (40) (push) Successful in 1m4s
Build AppImage, Arch and Fedora Packages / Build Fedora RPM (41) (push) Successful in 59s
Build AppImage, Arch and Fedora Packages / Build Fedora RPM (42) (push) Successful in 1m13s
Build AppImage, Arch and Fedora Packages / Build Fedora RPM (rawhide) (push) Successful in 59s
Build AppImage, Arch and Fedora Packages / Create and Publish Release (push) Failing after 24s
Signed-off-by: Boris Yumankulov <boria138@altlinux.org>
2025-06-15 22:53:23 +05:00
b77609cb5f fix: resolve Pyright type errors
Signed-off-by: Boris Yumankulov <boria138@altlinux.org>
2025-06-15 22:51:50 +05:00
3 changed files with 12 additions and 11 deletions

View File

@@ -62,6 +62,7 @@
- Исправлены ошибки при подключении геймпада
- Предотвращено многократное открытие диалога добавления игры через геймпад
- Корректная обработка событий геймпада во время игры
- Убийсво всех процессов "зомби" при закрытии программы
---

View File

@@ -29,12 +29,10 @@ def main():
else:
logger.error(f"Qt translations for {system_locale.name()} not found in {translations_path}")
# Парсинг аргументов командной строки
args = parse_args()
window = MainWindow()
# Обработка флага --fullscreen
if args.fullscreen:
logger.info("Launching in fullscreen mode due to --fullscreen flag")
save_fullscreen_config(True)
@@ -53,18 +51,19 @@ def main():
tray = None
current_theme = read_theme_from_config()
tray = SystemTray(app, current_theme)
tray.show_action.triggered.connect(window.show)
tray.hide_action.triggered.connect(window.hide)
# Ensure window is not None before connecting signals
if window:
tray.show_action.triggered.connect(window.show)
tray.hide_action.triggered.connect(window.hide)
def cleanup_on_exit():
nonlocal tray, window
app.aboutToQuit.disconnect() # Disconnect to prevent further calls
app.aboutToQuit.disconnect()
if tray:
tray.cleanup()
tray = None
if window:
window.close()
window = None
app.quit()
window.settings_saved.connect(recreate_tray)

View File

@@ -35,14 +35,15 @@ class SystemTray:
"""Скрыть иконку трея"""
if self.tray:
self.tray.setVisible(False)
self.tray.setContextMenu(None)
if self.menu:
self.menu.deleteLater()
self.menu = None
def cleanup(self):
"""Очистка ресурсов трея"""
self.hide_tray()
if self.tray:
self.tray.setVisible(False)
self.tray = None
if self.menu:
self.menu.deleteLater()
self.menu = None
if self.tray:
self.tray.deleteLater()
self.tray = None