Skip to content
Snippets Groups Projects
Commit e084c88a authored by Marko Mecina's avatar Marko Mecina
Browse files

add confirmation dialog on run_all_lines

parent 25ef40f0
Branches
Tags
No related merge requests found
...@@ -29,6 +29,8 @@ cfg = confignator.get_config() ...@@ -29,6 +29,8 @@ cfg = confignator.get_config()
pixmap_folder = cfg.get('ccs-paths', 'pixmap') pixmap_folder = cfg.get('ccs-paths', 'pixmap')
action_folder = cfg.get('ccs-paths', 'actions') action_folder = cfg.get('ccs-paths', 'actions')
VERIFY_EXEC_NO_BP = True
def group_scripts(fname, scrptdict): def group_scripts(fname, scrptdict):
""" """
...@@ -1691,6 +1693,18 @@ class CcsEditor(Gtk.Window): ...@@ -1691,6 +1693,18 @@ class CcsEditor(Gtk.Window):
def on_button_run_all_nobreak(self, widget): def on_button_run_all_nobreak(self, widget):
if VERIFY_EXEC_NO_BP:
confirm_run_all = Gtk.MessageDialog(title='Confirm execution')
confirm_run_all.add_buttons(Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL, Gtk.STOCK_OK, Gtk.ResponseType.OK)
confirm_run_all.set_markup('\nExecute ignoring breakpoints?')
confirm = confirm_run_all.run()
if confirm != Gtk.ResponseType.OK:
confirm_run_all.destroy()
return
confirm_run_all.destroy()
view = self._get_active_view() view = self._get_active_view()
textbuffer = view.get_buffer() textbuffer = view.get_buffer()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment