mirror of
https://github.com/agam778/MS-365-Electron.git
synced 2026-02-17 09:02:10 +00:00
Introduce Aptabase tracking preference
- Add an option to enable or disable Aptabase tracking for users, in the app menu. - Also give users a prompt on the app's first launch to choose their preference.
This commit is contained in:
@@ -326,6 +326,35 @@ const commonPreferencesSubmenu = [
|
||||
},
|
||||
checked: getValue("discordrpcstatus") === "true",
|
||||
},
|
||||
{
|
||||
label: "Enable Aptabase Tracking",
|
||||
type: "checkbox",
|
||||
click: () => {
|
||||
if (getValue("aptabaseTracking") === true) {
|
||||
setValue("aptabaseTracking", false);
|
||||
dialog.showMessageBoxSync({
|
||||
type: "info",
|
||||
title: "Aptabase Tracking",
|
||||
message: "Aptabase Tracking has been disabled.",
|
||||
buttons: ["OK"],
|
||||
});
|
||||
return;
|
||||
} else if (
|
||||
getValue("aptabaseTracking") === false ||
|
||||
getValue("aptabaseTracking") === undefined
|
||||
) {
|
||||
setValue("aptabaseTracking", true);
|
||||
dialog.showMessageBoxSync({
|
||||
type: "info",
|
||||
title: "Aptabase Tracking",
|
||||
message: "Aptabase Tracking has been enabled.",
|
||||
buttons: ["OK"],
|
||||
});
|
||||
return;
|
||||
}
|
||||
},
|
||||
checked: getValue("aptabaseTracking") === true,
|
||||
},
|
||||
{
|
||||
label: "Enable Auto Updates",
|
||||
type: "checkbox",
|
||||
|
||||
Reference in New Issue
Block a user