mirror of
https://gitlab.com/ryzen-controller-team/ryzen-controller.git
synced 2024-12-22 10:03:28 +07:00
fix(developers): Avoid recreate shortcut and enabling Sentry in development mode.
This commit is contained in:
parent
22554b41dc
commit
32e94d7fc2
@ -2,7 +2,9 @@ ready(function(){
|
|||||||
const settings = require('electron-settings');
|
const settings = require('electron-settings');
|
||||||
const fixPath = require('fix-path');
|
const fixPath = require('fix-path');
|
||||||
document.isStarting = true;
|
document.isStarting = true;
|
||||||
addSentry();
|
if (isDevMode()) {
|
||||||
|
addSentry();
|
||||||
|
}
|
||||||
fixPath();
|
fixPath();
|
||||||
displayOptions();
|
displayOptions();
|
||||||
preFillSettings();
|
preFillSettings();
|
||||||
@ -13,7 +15,7 @@ ready(function(){
|
|||||||
checkForAdminRights();
|
checkForAdminRights();
|
||||||
displayVersion();
|
displayVersion();
|
||||||
reApplyPeriodically(require('electron-settings').get('settings.reapply_periodically'));
|
reApplyPeriodically(require('electron-settings').get('settings.reapply_periodically'));
|
||||||
if (require('os').platform() === 'win32') {
|
if (require('os').platform() === 'win32' && isDevMode()) {
|
||||||
recreateShortcut();
|
recreateShortcut();
|
||||||
}
|
}
|
||||||
handlePlatformSpecificDisplay();
|
handlePlatformSpecificDisplay();
|
||||||
|
@ -656,3 +656,10 @@ function updateScheduledStartOnBoot(toBeEnabled) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return true if dev mode.
|
||||||
|
*/
|
||||||
|
function isDevMode() {
|
||||||
|
return require('electron').remote.app.isPackaged;
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user