Commit 4e641155 authored by Nong Hoang Tu's avatar Nong Hoang Tu
Browse files

Remove unessecary code

parent c9c7bb3f
Pipeline #4061 failed with stages
import killapps / [kill_apps_cli, kill_apps_gtk, kill_apps_dialog]
import killapps / [kill_apps_cli, kill_apps_gtk]
import commons / ansurf_types
......@@ -7,9 +7,3 @@ proc init_cli_askkill*(is_desktop: bool): callback_kill_apps =
return window_kill_app
else:
return cli_kill_apps
proc init_gtk_askkill*(): callback_kill_apps =
return dialog_kill_app
# return window_kill_app
# return window_kill_apps_gtk
import gintro / gtk
import .. / .. / cores / handle_activities
import .. / .. / cores / handle_killapps
import .. / ansurf_objects
import .. / widgets / tor_status_widget
import .. / .. / cores / commons / services_status
let cb_kill_apps = init_gtk_askkill()
import .. / .. / cores / killapps / kill_apps_dialog
proc do_anonsurf_start(cb_send_msg: proc) {.gcsafe.} =
......@@ -31,14 +28,15 @@ proc do_anonsurf_checkip(cb_send_msg: proc) {.gcsafe.} =
proc ansurf_gtk_do_start_stop*(b: Button, cb_send_msg: proc) =
if b.label == "Start":
cb_kill_apps(cb_send_msg)
# cb_kill_apps(cb_send_msg)
dialog_kill_app(cb_send_msg)
# ansurf_acts_handle_start("gksudo", cb_send_msg)
createThread(ansurf_workers_common, do_anonsurf_start, cb_send_msg)
else:
# createThread(ansurf_workers_common, do_anonsurf_stop, cb_send_msg)
ansurf_acts_handle_stop("gksudo", cb_send_msg)
if getServStatus("anonsurfd") == 3:
cb_kill_apps(cb_send_msg)
dialog_kill_app(cb_send_msg)
# joinThread(ansurf_workers_common)
......
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