Skip to content

Commit

Permalink
Save the last file path used in backups for future use
Browse files Browse the repository at this point in the history
  • Loading branch information
aaroncox committed Sep 4, 2020
1 parent 27b1c44 commit acdb835
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -49,7 +49,10 @@ class OverviewSidebarBackupContainer extends Component<Props> {
JSON.stringify(backup),
'wallet'
);
ipcRenderer.once('lastFileSuccess', () => actions.setSetting('lastBackupDate', Date.now()));
ipcRenderer.once('lastFileSuccess', (event, file) => {
actions.setSetting('lastFilePath', file.substring(0, file.lastIndexOf('/')));
actions.setSetting('lastBackupDate', Date.now());
});
};

render() {
Expand Down

0 comments on commit acdb835

Please sign in to comment.