Skip to content

Commit 220b416

Browse files
committed
CONFIG: option to reset the joinmarket.cfg
1 parent cdeab6f commit 220b416

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

scripts/menu.config.sh

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ source /home/joinmarket/joinin.conf
44
source /home/joinmarket/_functions.sh
55

66
# BASIC MENU INFO
7-
HEIGHT=9
7+
HEIGHT=10
88
WIDTH=58
99
CHOICE_HEIGHT=20
1010
TITLE="Tools"
@@ -15,8 +15,9 @@ BACKTITLE="JoininBox GUI"
1515
# Basic Options
1616
OPTIONS+=(\
1717
JMCONF "Edit the joinmarket.cfg manually" \
18+
RESET "Reset the joinmarket.cfg to the defaults"
1819
CONNECT "Connect to a remote bitcoin node on mainnet"\
19-
SIGNET "Switch to signet with local Bitcoin Core"
20+
SIGNET "Switch to signet with a local Bitcoin Core"
2021
)
2122

2223
CHOICE=$(dialog --clear \
@@ -34,6 +35,14 @@ case $CHOICE in
3435
sleep 1
3536
/home/joinmarket/menu.sh
3637
;;
38+
RESET)
39+
echo "# Removing the joinmarket.cfg"
40+
rm -f /home/joinmarket/.joinmarket/joinmarket.cfg
41+
generateJMconfig
42+
echo "Returning to the menu..."
43+
sleep 1
44+
/home/joinmarket/menu.sh
45+
;;
3746
CONNECT)
3847
/home/joinmarket/install.signet.sh off
3948
/home/joinmarket/menu.bitcoinrpc.sh

0 commit comments

Comments
 (0)