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 fixPath = require('fix-path');
|
||||
document.isStarting = true;
|
||||
if (isDevMode()) {
|
||||
addSentry();
|
||||
}
|
||||
fixPath();
|
||||
displayOptions();
|
||||
preFillSettings();
|
||||
@ -13,7 +15,7 @@ ready(function(){
|
||||
checkForAdminRights();
|
||||
displayVersion();
|
||||
reApplyPeriodically(require('electron-settings').get('settings.reapply_periodically'));
|
||||
if (require('os').platform() === 'win32') {
|
||||
if (require('os').platform() === 'win32' && isDevMode()) {
|
||||
recreateShortcut();
|
||||
}
|
||||
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