Drop an unnecessary self

We have the device variable here and use it in the lines above. Let's do the
same for the drawings too.
pull/145/head
Peter Hutterer 2019-07-16 10:26:53 +10:00
parent a82b291dbb
commit 3590ee4ce3
1 changed files with 1 additions and 2 deletions

View File

@ -84,8 +84,7 @@ class DrawingPerspective(Gtk.Stack):
device.connect('notify::connected', self._on_connected)
device.connect('notify::listening', self._on_listening_stopped)
device.connect('notify::sync-state', self._on_sync_state)
self.device.connect('notify::drawings-available',
self._update_drawings)
device.connect('notify::drawings-available', self._update_drawings)
if device.battery_percent > 80:
percent = 'full'