Skip to content

Commit

Permalink
Added some more checks to prevent exceptions.
Browse files Browse the repository at this point in the history
Fixed window size
  • Loading branch information
ThePromidius committed Jan 16, 2022
1 parent 22b3253 commit 0b94c1f
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions MangaManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -591,14 +591,6 @@ def ValidateIfNum(s, S):


def preview_changes():

# try:
# velog("Preview changes: Try to clear treeview")
# self.treeview2.delete(*self.treeview1.get_children())
# except AttributeError:
# delog("Can't clear treeview. -> doesnt exist yet")
# except Exception as e:
# delog("Can't clear treeview",exc_info=e)
s = ttk.Style()
s.configure('Treeview', rowheight=20, rowpady=5, rowwidth=365)
# s.layout("Treeview", [
Expand All @@ -607,6 +599,8 @@ def preview_changes():

self.list_filestorename = []
counter = 0
if not self.covers_path_list:
return
volume_to_apply = self.spinbox1.get()
for cbz_path in self.covers_path_list:
filepath = cbz_path.name
Expand Down Expand Up @@ -636,7 +630,8 @@ def preview_changes():
delog(f"Inserted item in treeview -> {file_regex_finds.name}")
counter +=1
self.covers_path_list = None
self.button4_proceed.configure(state="normal")
if len(self.treeview2.get_children()) == 0:
self.button4_proceed.configure(state="normal")


s = ttk.Style()
Expand Down

0 comments on commit 0b94c1f

Please sign in to comment.