Skip to content

Commit

Permalink
Reformat to adhere to 79-char boundary.
Browse files Browse the repository at this point in the history
Remove unnecessary references to balt.
  • Loading branch information
warmfrost85 committed Apr 16, 2020
1 parent 3ad90a5 commit 2c2c66b
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions Mopy/bash/basher/installers_links.py
Expand Up @@ -260,19 +260,25 @@ def Execute(self):
try:
all_unknown_files = self.idata.get_clean_data_dir_list()
if not all_unknown_files:
balt.askOk(None, u'There are no untracked files in the Data folder.', u'Data folder is clean')
self._showOk(u'There are no untracked files in the '
'Data folder.', u'Data folder is clean')
return
message = [u'', _(u'Uncheck files to keep them in the Data folder.')] # add a tool tip
message = [u'', # adding a tool tip
_(u'Uncheck files to keep them in the Data folder.')]
all_unknown_files.sort()
message.extend(all_unknown_files)
selected_unknown_files = []
with balt.ListBoxes(None, u'Move the following checked files out of the Data folder.',
u'Uncheck any files you want to keep in the Data folder.', [message]) as dialog:
with ListBoxes(self.window, u'Move files out of the Data folder.',
u'Uncheck any files you want to keep in the Data folder.',
[message]) as dialog:
if dialog.show_modal():
selected_unknown_files = dialog.getChecked(message[0], all_unknown_files)
selected_unknown_files = dialog.getChecked(message[0],
all_unknown_files)
if selected_unknown_files:
with balt.Progress(_(u'Cleaning Data Files...'), u'\n' + u' ' * 65):
self.idata.clean_data_dir(selected_unknown_files, ui_refresh)
with balt.Progress(_(u'Cleaning Data Files...'),
u'\n' + u' ' * 65):
self.idata.clean_data_dir(selected_unknown_files,
ui_refresh)
finally:
self.iPanel.RefreshUIMods(*ui_refresh)

Expand Down

0 comments on commit 2c2c66b

Please sign in to comment.