Skip to content

Commit 3c1fe7f

Browse files
author
adamkpickering
authored
Merge pull request #1681 from rancher-sandbox/1652-remove-factory-reset-relaunch
Do not relaunch on factory reset
2 parents 470f7cb + e460710 commit 3c1fe7f

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

background.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -520,8 +520,7 @@ Electron.ipcMain.on('factory-reset', async() => {
520520
}
521521
// Remove app settings
522522
await settings.clear();
523-
// Restart
524-
Electron.app.relaunch();
523+
525524
Electron.app.quit();
526525
});
527526

src/pages/Troubleshooting.vue

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,11 @@ export default {
8888
},
8989
methods: {
9090
factoryReset() {
91-
const message = `
92-
Doing a factory reset will remove your cluster and all rancher-desktop
93-
settings; you will need to re-do the initial set up again. Are you sure
94-
you want to factory reset?`.replace(/\s+/g, ' ');
91+
const message = `Doing a factory reset will remove your cluster and
92+
all Rancher Desktop settings, and shut down Rancher Desktop. If you
93+
intend to continue using Rancher Desktop, you will need to manually
94+
start it and go through the initial set up again. Are you sure you
95+
want to factory reset?`.replace(/\s+/g, ' ');
9596
9697
if (confirm(message)) {
9798
ipcRenderer.send('factory-reset');

0 commit comments

Comments
 (0)