1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2026-01-22 14:41:39 +00:00

Refactoring: de-notified problems_dialog. It simplifies things.

This commit is contained in:
Virgil Dupras
2012-03-13 11:58:07 -04:00
parent b4b9393e14
commit 878c744c21
4 changed files with 9 additions and 25 deletions

View File

@@ -116,8 +116,7 @@ class DupeGuru(RegistrableApplication, Broadcaster):
self.problem_dialog = ProblemDialog(self)
self.stats_label = StatsLabel(self)
self.result_table = self._create_result_table()
children = [self.result_table, self.directory_tree, self.problem_dialog, self.stats_label,
self.details_panel]
children = [self.result_table, self.directory_tree, self.stats_label, self.details_panel]
for child in children:
child.connect()
# subclasses must create and connect self.result_table
@@ -195,7 +194,7 @@ class DupeGuru(RegistrableApplication, Broadcaster):
self.view.show_results_window()
if jobid in {JobType.Copy, JobType.Move, JobType.Delete}:
if self.results.problems:
self.notify('problems_changed')
self.problem_dialog.refresh()
self.view.show_problem_dialog()
else:
msg = {