Skip to content

Commit

Permalink
Update analytics preference
Browse files Browse the repository at this point in the history
  • Loading branch information
Kitenite committed Sep 23, 2024
1 parent 53657d4 commit aea9b72
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/electron/main/events/analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { MainChannels } from '/common/constants';

export function listenForAnalyticsMessages() {
ipcMain.on(MainChannels.UPDATE_ANALYTICS_PREFERENCE, (e: Electron.IpcMainInvokeEvent, args) => {
// TODO: Handle this in update user settings. Check for enabledAnalytics.
const analyticsPref = args as boolean;
analytics.toggleSetting(analyticsPref);
});
Expand Down

0 comments on commit aea9b72

Please sign in to comment.