[gnome-music/wip/jfelder/selection-misc-cleanups: 5/20] artistsviews: Prevent selection changes if the view is not visible
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/jfelder/selection-misc-cleanups: 5/20] artistsviews: Prevent selection changes if the view is not visible
- Date: Tue, 14 Jan 2020 14:52:13 +0000 (UTC)
commit c61a2469589176f7138d459796085880f2f322d1
Author: Jean Felder <jfelder src gnome org>
Date: Fri Jan 10 13:15:30 2020 +0100
artistsviews: Prevent selection changes if the view is not visible
A user can only select artists if the view is visible.
gnomemusic/views/artistsview.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gnomemusic/views/artistsview.py b/gnomemusic/views/artistsview.py
index d61301c6..1eb4289c 100644
--- a/gnomemusic/views/artistsview.py
+++ b/gnomemusic/views/artistsview.py
@@ -190,7 +190,8 @@ class ArtistsView(BaseView):
@log
def _on_selection_mode_changed(self, widget, data=None):
selection_mode = self._window.props.selection_mode
- if selection_mode == self.props.selection_mode:
+ if (selection_mode == self.props.selection_mode
+ or self.get_parent().get_visible_child() != self):
return
super()._on_selection_mode_changed(widget, data)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]