Added "Change Seed" button

This commit is contained in:
AlexanderBuzz
2023-07-27 15:27:48 +02:00
parent 5b0b75abd9
commit d39ea74e55
15 changed files with 97 additions and 26 deletions

View File

@@ -64,7 +64,13 @@ const main = async () => {
})
// We have to wait for the application frontend to be ready, otherise
ipcMain.on('request-seed-change', (event) => {
fs.rmSync(path.join(__dirname, WALLET_DIR , 'seed.txt'))
fs.rmSync(path.join(__dirname, WALLET_DIR , 'salt.txt'))
appWindow.webContents.send('open-seed-dialog')
})
// We have to wait for the application frontend to be ready, otherwise
// we might run into a race condition and the ope-dialog events
// get triggered before the callbacks are attached
appWindow.once('ready-to-show', () => {