Skip to content

Commit

Permalink
Remove menu entry to allow to remove wallet file (#596)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlyp authored Aug 17, 2017
1 parent b3e71f9 commit d281ebf
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions app/main.development.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { app, BrowserWindow, Menu, shell } from "electron";
import { getCfg, appDataDirectory, dcrdCfg, dcrwCfg, writeCfgs, getDcrdPath, getWalletFile } from "./config.js";
import { getCfg, appDataDirectory, dcrdCfg, dcrwCfg, writeCfgs, getDcrdPath } from "./config.js";
import path from "path";
import os from "os";
import parseArgs from "minimist";
import mv from "mv";
import winston from "winston";

let menu;
Expand Down Expand Up @@ -450,21 +449,6 @@ app.on("ready", async () => {
click() {
shell.openItem(path.join(getDcrdPath(), "logs"));
}
}, {
label: "Remove Wallet (Requires Restart)",
click() {
logger.log(getWalletFile());
closeDCRW();
var origFile = getWalletFile();
var date = new Date();
var backupFile = origFile + "-" + date.toISOString();
mv(origFile, backupFile, function(err) {
if (err != undefined) {
logger.log("error", "Cannot remove file!", err);
}
});
cleanShutdown();
}
}]
}, {
label: "Help",
Expand Down

0 comments on commit d281ebf

Please sign in to comment.