Convert four assignment statements to the usage of augmented operators
diff --git a/gnomemusic/views/albumsview.py b/gnomemusic/views/albumsview.py
index 1bc8d398..1403ce33 100644
--- a/gnomemusic/views/albumsview.py
+++ b/gnomemusic/views/albumsview.py
@@ -185,7 +185,7 @@ class AlbumsView(Gtk.Stack):
GLib.timeout_add(
self._widget_counter * 250, album_widget.retrieve,
priority=GLib.PRIORITY_LOW)
- self._widget_counter = self._widget_counter + 1
+ self._widget_counter += 1
return album_widget
diff --git a/gnomemusic/views/artistsview.py b/gnomemusic/views/artistsview.py
index f3e1d064..e70c037f 100644
--- a/gnomemusic/views/artistsview.py
+++ b/gnomemusic/views/artistsview.py
@@ -92,7 +92,7 @@ class ArtistsView(Gtk.Paned):
GLib.timeout_add(
self._widget_counter * 300, row.retrieve,
priority=GLib.PRIORITY_LOW)
- self._widget_counter = self._widget_counter + 1
+ self._widget_counter += 1
return row
diff --git a/gnomemusic/widgets/notificationspopup.py b/gnomemusic/widgets/notificationspopup.py
index 3ba9c55c..f80ea8d4 100644
--- a/gnomemusic/widgets/notificationspopup.py
+++ b/gnomemusic/widgets/notificationspopup.py
@@ -139,7 +139,7 @@ class LoadingNotification(Gtk.Grid):
def pop(self):
"""Decrease the counter. Hide notification if it reaches 0."""
- self._counter = self._counter - 1
+ self._counter -= 1
if self._counter == 0:
# Stop the timeout if necessary
@@ -160,7 +160,7 @@ class LoadingNotification(Gtk.Grid):
# add a timeout. 500ms feels good enough.
self._timeout_id = GLib.timeout_add(500, callback)
- self._counter = self._counter + 1
+ self._counter += 1
@Gtk.Template(resource_path="/org/gnome/Music/ui/PlaylistNotification.ui")
Edited by Markus Elfring