Skip to content

Commit 871f244

Browse files
committed
Cleaned up code
1 parent 3efddfd commit 871f244

2 files changed

Lines changed: 1 addition & 7 deletions

File tree

backdrop.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1633,8 +1633,6 @@ def handleSplitModeCheck():
16331633
backupFileDetailsFrame = tk.Frame(mainFrame, width=400)
16341634
backupFileDetailsFrame.grid_propagate(0)
16351635

1636-
# URGENT: File details items, and analysis detail list need to be cleared out the second analysis is started, so that the counts and lists aren't stacked on top of existing stuff
1637-
16381636
fileDetailsPendingDeleteHeaderLine = tk.Frame(backupFileDetailsFrame)
16391637
fileDetailsPendingDeleteHeaderLine.grid(row=0, column=0, sticky='w')
16401638
fileDetailsPendingDeleteHeader = tk.Label(fileDetailsPendingDeleteHeaderLine, text='Files to delete', font=(None, 11, 'bold'))
@@ -1733,10 +1731,7 @@ def toggleFileDetails():
17331731
backupFileDetailsFrame.grid(row=0, column=0, rowspan=11, sticky='nsew', padx=(0, elemPadding), pady=(elemPadding / 2, 0))
17341732
backupFileDetailsToggle.configure(text='Hide Details')
17351733

1736-
# settingsIcon2Load = Image.open(resource_path(f"media\\settings{'_light' if uiColor.isDarkMode() else ''}.png"))
1737-
# settingsIcon2Render = ImageTk.PhotoImage(settingsIcon2Load)
1738-
# backupFileDetailsToggle = tk.Button(backupMidControlFrame, image=settingsIcon2Render, relief='sunken', borderwidth=0, highlightcolor=uiColor.BG, activebackground=uiColor.BG)
1739-
backupFileDetailsToggle = ttk.Button(backupMidControlFrame, text='Show Details', command=toggleFileDetails) # TODO: Add command to file detials button
1734+
backupFileDetailsToggle = ttk.Button(backupMidControlFrame, text='Show Details', command=toggleFileDetails)
17401735
backupFileDetailsToggle.grid(row=0, column=0)
17411736

17421737
tk.Grid.columnconfigure(mainFrame, 3, weight=1)

bin/backup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@ def analyze(self):
174174
curDriveInfo['name'] = f"[{drive['vid']}]"
175175
curDriveInfo['configSize'] = 20000 # Assume 20K config size
176176

177-
# TODO: Find a way to properly determine free space left of drive here
178177
curDriveInfo['free'] = drive['capacity'] - drive['configSize']
179178

180179
driveInfo.append(curDriveInfo)

0 commit comments

Comments
 (0)