Commit f862281e authored by Nong Hoang Tu's avatar Nong Hoang Tu
Browse files

Try to change kill app ask to dialog

parent 7268231b
Pipeline #3767 canceled with stages
......@@ -10,4 +10,4 @@ proc init_cli_askkill*(is_desktop: bool): callback_kill_apps =
proc init_gtk_askkill*(): proc =
return window_kill_app
return dialog_kill_app
......@@ -59,3 +59,15 @@ proc window_kill_app*(callback_send_msg: callback_send_messenger) =
mainBoard.showAll()
mainBoard.connect("destroy", onExit)
gtk.main()
proc dialog_kill_app*(callback_send_msg: callback_send_messenger) =
let
retDialog = newDialog()
dialogArea = retDialog.getContentArea()
boxDialog = box_kill_app(callback_send_msg)
retDialog.setTitle("Kill dangerous application")
dialogArea.add(boxDialog)
retDialog.showAll()
discard retDialog.run()
retDialog.destroy()
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