File tree 2 files changed +9
-0
lines changed
2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -424,6 +424,12 @@ export interface AccountDropdownPortfolioClicked {
424
424
sensitiveProperties ?: never
425
425
}
426
426
427
+ export interface MainWindowClosed {
428
+ event : 'Main Window Closed'
429
+ properties ?: never
430
+ sensitiveProperties ?: never
431
+ }
432
+
427
433
export type PossibleMetricPayloads =
428
434
| MetricsOptIn
429
435
| MetricsOptOut
@@ -467,5 +473,6 @@ export type PossibleMetricPayloads =
467
473
| PatchingFailed
468
474
| PatchingTooSlow
469
475
| AccountDropdownPortfolioClicked
476
+ | MainWindowClosed
470
477
471
478
export type PossibleMetricEventNames = PossibleMetricPayloads [ 'event' ]
Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ import {
82
82
} from './utils/systeminfo/gpu/pci_ids'
83
83
import { copyFile , lstat , mkdir , readdir } from 'fs/promises'
84
84
import { GameConfig } from './game_config'
85
+ import { trackEvent } from './metrics/metrics'
85
86
86
87
const execAsync = promisify ( exec )
87
88
@@ -260,6 +261,7 @@ async function handleExit() {
260
261
// Kill all child processes
261
262
callAllAbortControllers ( )
262
263
}
264
+ trackEvent ( { event : 'Main Window Closed' } )
263
265
app . exit ( )
264
266
}
265
267
You can’t perform that action at this time.
0 commit comments