Commit 80801d6d authored by Nong Hoang Tu's avatar Nong Hoang Tu
Browse files

Fix my ip button is not disabled

parent e87595a0
Pipeline #3781 canceled with stages
......@@ -169,7 +169,8 @@ proc updateMain*(args: MainObjs, myStatus: Status) =
args.btnID.setSensitive(false)
args.btnStatus.setSensitive(false)
# if ansurf_workers_myip.running:
# args.btnIP.setSensitive(false)
# else:
# args.btnIP.setSensitive(true)
if ansurf_workers_myip.running:
args.btnIP.setSensitive(false)
else:
ansurf_workers_myip.joinThread()
args.btnIP.setSensitive(true)
......@@ -18,3 +18,5 @@ proc ansurf_gtk_do_enable_disable_boot*(b: Button, cb_send_msg: proc) =
else:
# ansurf_acts_handle_boot_disable("gksudo", cb_send_msg)
createThread(ansurf_workers_common, do_anonsurf_disable_boot, cb_send_msg)
ansurf_workers_common.joinThread()
......@@ -48,12 +48,13 @@ proc ansurf_gtk_do_restart*(b: Button, cb_send_msg: proc) =
proc ansurf_gtk_do_myip*(b: Button, cb_send_msg: proc) =
# ansurf_acts_handle_checkIP(cb_send_msg)
createThread(ansurf_workers_common, do_anonsurf_checkip, (cb_send_msg))
createThread(ansurf_workers_myip, do_anonsurf_checkip, (cb_send_msg))
proc ansurf_gtk_do_changeid*(b: Button, cb_send_msg: proc) =
# ansurf_acts_handle_changeID(cb_send_msg)
createThread(ansurf_workers_common, do_anonsurf_changeid, (cb_send_msg))
ansurf_workers_common.joinThread()
proc ansurf_gtk_do_status*(b: Button) =
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment