[gnome-music/wip/mschraal/artistsview-selection-through-coreobjects: 3/3] artistalbumswidget: Simplify selection logic
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/artistsview-selection-through-coreobjects: 3/3] artistalbumswidget: Simplify selection logic
- Date: Wed, 2 Feb 2022 22:38:27 +0000 (UTC)
commit f583a08d03a10a79c1242c45978d543e815794dc
Author: Marinus Schraal <mschraal gnome org>
Date: Wed Feb 2 23:24:33 2022 +0100
artistalbumswidget: Simplify selection logic
gnomemusic/widgets/artistalbumswidget.py | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/gnomemusic/widgets/artistalbumswidget.py b/gnomemusic/widgets/artistalbumswidget.py
index 1f494ae06..4fce09c30 100644
--- a/gnomemusic/widgets/artistalbumswidget.py
+++ b/gnomemusic/widgets/artistalbumswidget.py
@@ -89,13 +89,11 @@ class ArtistAlbumsWidget(Handy.Clamp):
def select_all(self) -> None:
"""Select all items"""
- for corealbum in self._model:
- corealbum.props.selected = True
+ self._artist.props.selected = True
def deselect_all(self) -> None:
"""Deselect all items"""
- for corealbum in self._model:
- corealbum.props.selected = False
+ self._artist.props.selected = False
@GObject.Property(type=str, flags=GObject.ParamFlags.READABLE)
def artist(self) -> str:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]