fixed small bug in system module

* only destroy root window if it was created
This commit is contained in:
Bernhard B 2019-07-28 18:19:49 +02:00
parent 1598275b25
commit 7f8e08a832

View file

@ -60,10 +60,10 @@ class Module(bumblebee.engine.Module):
root.focus_set() root.focus_set()
do_it = tkmessagebox.askyesno(header, text) do_it = tkmessagebox.askyesno(header, text)
root.destroy()
if do_it: if do_it:
bumblebee.util.execute(command) bumblebee.util.execute(command)
root.destroy()
def popup(self, widget): def popup(self, widget):