mirror of
https://github.com/aclist/dztui.git
synced 2024-12-29 13:52:03 +01:00
chore: guard clause
This commit is contained in:
parent
a46c2e17ab
commit
6d332f613e
1 changed files with 10 additions and 9 deletions
|
@ -1132,15 +1132,16 @@ 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:
|
||||||
mods = []
|
return
|
||||||
symlink = self.get_column_at_index(1)
|
mods = []
|
||||||
dir = self.get_column_at_index(2)
|
symlink = self.get_column_at_index(1)
|
||||||
concat = symlink + " " + dir + "\n"
|
dir = self.get_column_at_index(2)
|
||||||
mods.append(concat)
|
concat = symlink + " " + dir + "\n"
|
||||||
with open(mods_temp_file, "w") as outfile:
|
mods.append(concat)
|
||||||
outfile.writelines(mods)
|
with open(mods_temp_file, "w") as outfile:
|
||||||
process_tree_option([self.view, RowType.DELETE_SELECTED], self)
|
outfile.writelines(mods)
|
||||||
|
process_tree_option([self.view, RowType.DELETE_SELECTED], self)
|
||||||
case "Open in Steam Workshop":
|
case "Open in Steam Workshop":
|
||||||
record = self.get_column_at_index(2)
|
record = self.get_column_at_index(2)
|
||||||
base_cmd = "open_workshop_page"
|
base_cmd = "open_workshop_page"
|
||||||
|
|
Loading…
Reference in a new issue