diff options
author | Gonzalo Odiard <godiard@gmail.com> | 2013-04-09 19:45:13 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@gmail.com> | 2013-04-09 19:45:13 (GMT) |
commit | 0909d042fd4f08487fe7de487b8744260a279a10 (patch) | |
tree | 4fe63631ef34be0e8e529e1a7a9c41723043c055 | |
parent | 50d94f16457fd1521fef7ee26e5caadca64d0b8d (diff) |
Hide empty panel if use the Add button in the toolbar or in the panel
They should wok in the same way.
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
-rw-r--r-- | controls.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/controls.py b/controls.py index c94afe0..4655144 100644 --- a/controls.py +++ b/controls.py @@ -157,7 +157,7 @@ class Controls(GObject.GObject): self.activity.playlist_widget.delete_selected_items() self.check_if_next_prev() - def show_picker_cb(self, button=None): + def show_picker_cb(self): jobject = None chooser = ObjectChooser(self.activity, what_filter=mime.GENERIC_TYPE_AUDIO) @@ -171,9 +171,8 @@ class Controls(GObject.GObject): self.activity.playlist_widget.load_file(jobject) self.check_if_next_prev() - if button is not None: - self.activity._switch_canvas(False) - self.activity._view_toolbar.\ + self.activity._switch_canvas(False) + self.activity._view_toolbar.\ _show_playlist.set_active(True) finally: if jobject is not None: |