mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-06 10:59:42 +00:00
Wizard: use endsWith, fix todo
This commit is contained in:
parent
8444a9563e
commit
d60bbb72f7
1 changed files with 1 additions and 4 deletions
|
@ -69,10 +69,7 @@ function walletPathExists(accountsDir, directory, filename, isIOS, walletManager
|
||||||
if(!filename || filename === "") return false;
|
if(!filename || filename === "") return false;
|
||||||
if(!directory || directory === "") return false;
|
if(!directory || directory === "") return false;
|
||||||
|
|
||||||
// make sure directory endswith path seperator
|
if (!directory.endsWith("/") && !directory.endsWith("\\"))
|
||||||
// @TODO: use .endswith() after Qt 5.8
|
|
||||||
var trailing_path_sep = directory[directory.length-1];
|
|
||||||
if(trailing_path_sep !== "/" && trailing_path_sep !== "\\")
|
|
||||||
directory += "/"
|
directory += "/"
|
||||||
|
|
||||||
if(isIOS)
|
if(isIOS)
|
||||||
|
|
Loading…
Reference in a new issue