mirror of
https://github.com/aclist/dztui.git
synced 2024-12-30 14:12:04 +01:00
chore: guard clause
This commit is contained in:
parent
a46c2e17ab
commit
6d332f613e
1 changed files with 10 additions and 9 deletions
|
@ -1132,7 +1132,8 @@ class TreeView(Gtk.TreeView):
|
||||||
success_msg = "Successfully deleted the mod '%s'." %(value)
|
success_msg = "Successfully deleted the mod '%s'." %(value)
|
||||||
fail_msg = "An error occurred during deletion. Aborting."
|
fail_msg = "An error occurred during deletion. Aborting."
|
||||||
res = spawn_dialog(parent, conf_msg, Popup.CONFIRM)
|
res = spawn_dialog(parent, conf_msg, Popup.CONFIRM)
|
||||||
if res == 0:
|
if res != 0:
|
||||||
|
return
|
||||||
mods = []
|
mods = []
|
||||||
symlink = self.get_column_at_index(1)
|
symlink = self.get_column_at_index(1)
|
||||||
dir = self.get_column_at_index(2)
|
dir = self.get_column_at_index(2)
|
||||||
|
|
Loading…
Reference in a new issue