Update main.js

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
troyeguo
2026-01-28 16:27:00 +08:00
committed by GitHub
parent 8a799e2a81
commit f4e4e6deea

View File

@@ -734,8 +734,8 @@ const createMainWin = () => {
});
ipcMain.handle("hide-reader", (event, arg) => {
if (
!readerWindow.isDestroyed() &&
readerWindow &&
!readerWindow.isDestroyed() &&
readerWindow.isFocused()
) {
readerWindow.minimize();