diff --git a/files/ZAZFavorites_v0.6.0.oxt b/files/ZAZFavorites_v0.6.0.oxt index cbad9e7..5260f48 100644 Binary files a/files/ZAZFavorites_v0.6.0.oxt and b/files/ZAZFavorites_v0.6.0.oxt differ diff --git a/source/images/delete.svg b/source/images/delete.svg new file mode 100644 index 0000000..feea981 --- /dev/null +++ b/source/images/delete.svg @@ -0,0 +1,90 @@ + +image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/source/pythonpath/main.py b/source/pythonpath/main.py index d32b56e..7fc93e2 100644 --- a/source/pythonpath/main.py +++ b/source/pythonpath/main.py @@ -9,6 +9,7 @@ _ = None class Controllers(object): + TITLE = '' def __init__(self, dlg): self.d = dlg @@ -16,14 +17,14 @@ class Controllers(object): def button_add_action(self, event): path = app.paths.get_file() - # ~ if not path: - # ~ return - # ~ if path in self.paths: - # ~ msg = _('Path previously added') - # ~ app.msgbox(msg, self.TITLE) - # ~ return + if not path: + return + if path in self.paths: + msg = _('Path previously added') + app.msgbox(msg, self.TITLE) + return - # ~ self.paths.append(path) + self.paths.append(path) # ~ p, filename, n, e = app.get_info_path(path) # ~ self.d.grid.add_row((filename, '', path)) # ~ self.d.grid.set_cell_tooltip(0, self.d.grid.rows-1, p) @@ -32,7 +33,7 @@ class Controllers(object): return def button_save_action(self, event): - msg = _('¿Want you save your favorites?') + msg = _('Want you save your favorites?') if not app.question(msg, self.TITLE): return @@ -75,7 +76,7 @@ class Controllers(object): if col != 1: return - msg = _('¿Want you delete this file?') + msg = _('Want you delete this file?') if app.question(msg, self.TITLE): path = self.d.grid[2, row] self.paths.remove(path) @@ -119,6 +120,7 @@ def _create_dialog(): dlg = app.create_dialog(args) dlg.id = ID_EXTENSION dlg.events = Controllers + dlg.events.TITLE = TITLE args = { 'Type': 'Button',