Skip to content

Commit 5a8450b

Browse files
committed
feat: new icon for paused
1 parent d9ba56f commit 5a8450b

3 files changed

Lines changed: 10 additions & 2 deletions

File tree

images/nudge-default.png

-709 Bytes
Loading

src/store/index.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ export function onIndicatorStateChange(
9090

9191
export function getStateIndicator(): IndicatorState {
9292
const state = store.getState()
93+
if (state.session?.pausedAt) {
94+
return 'paused'
95+
}
9396
if (state.captureStartedAt) {
9497
return 'capturing'
9598
}
@@ -102,7 +105,12 @@ export function getStateIndicator(): IndicatorState {
102105
return 'inactive'
103106
}
104107

105-
export type IndicatorState = 'active' | 'inactive' | 'capturing' | 'assessing'
108+
export type IndicatorState =
109+
| 'active'
110+
| 'inactive'
111+
| 'capturing'
112+
| 'assessing'
113+
| 'paused'
106114

107115
//
108116
//

src/tray.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ function getTrayIconForStatus(status: IndicatorState) {
244244
return getImagePath(`nudge-capturing.png`)
245245
} else if (status === 'assessing') {
246246
return getImagePath(`nudge-assessing.png`)
247-
} else if (status === 'inactive') {
247+
} else if (status === 'inactive' || status === 'paused') {
248248
return getImagePath(`nudge-inactive.png`)
249249
} else {
250250
return getImagePath(`nudge-default.png`)

0 commit comments

Comments
 (0)