Skip to content

The only downloader you need. 下载器的集大成者。

Fixes #379

XiaoYouChR1611e44b155d
diff --git a/app/view/windows/main_window.py b/app/view/windows/main_window.py
index 494831a6..00ca8642 100644
--- a/app/view/windows/main_window.py
+++ b/app/view/windows/main_window.py
@@ -5,7 +5,7 @@ from typing import TYPE_CHECKING, Any
from urllib.parse import urlparse
import darkdetect
-from PySide6.QtCore import QRect, QPropertyAnimation, Qt, QUrl, QEvent
+from PySide6.QtCore import QRect, QPropertyAnimation, Qt, QUrl, QEvent, QTimer
from PySide6.QtGui import QDesktopServices, QIcon, QColor, QPalette
from PySide6.QtWidgets import QApplication, QGraphicsOpacityEffect, QDialog
from loguru import logger
@@ -347,6 +347,12 @@ class MainWindow(MSFluentWindow):
def closeEvent(self, event):
event.ignore()
+
+ if sys.platform == 'darwin' and self.isFullScreen():
+ self.showNormal()
+ QTimer.singleShot(1000, self.hide)
+ return
+
if not self.isMaximized():
cfg.set(cfg.geometry, self.geometry())