Skip to content
This repository was archived by the owner on Sep 15, 2025. It is now read-only.

Commit e96c55d

Browse files
committed
초과시점에 창에 포커스 맞추기
1 parent 55d4767 commit e96c55d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/renderer/pages/pomodoro.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import { FocusScreen, HomeScreen, RestScreen, RestWaitScreen } from '@/widgets/p
2121

2222
// @note: 개발할 때, 초과시간까지 빠르게 테스트하기 위해 설정함
2323
// 원래대로 하고 싶으면 false로 변경해서 사용하면 됩니다
24-
const isFastForward = false; //import.meta.env.DEV;
24+
const isFastForward = import.meta.env.DEV;
2525
const taping = (ms: number) => (isFastForward ? Math.floor(ms / 60) : ms);
2626

2727
const focusExceedMaxTime = taping(minutesToMs(60));
@@ -76,6 +76,8 @@ const Pomodoro = () => {
7676
onceExceedGoalTime: (mode) => {
7777
if (!user?.cat?.type) return;
7878
// 목표시간 초과 시 알림
79+
// 초과시점에 창에 포커스 맞추기
80+
window.electronAPI.showWindow();
7981
if (mode === 'focus') return createNotificationByMode(user.cat.type, 'focus-end');
8082
if (mode === 'rest') return createNotificationByMode(user.cat.type, 'rest-end');
8183
},

0 commit comments

Comments
 (0)