From 5d821ef39b755a2713509bb034d5a253725b6ffc Mon Sep 17 00:00:00 2001 From: Manuel Kaufmann Date: Mon, 04 Feb 2013 20:51:57 +0000 Subject: Do not hide empty panel when a pen drive is (un)mounted SL #4405 If we start Jukebox from scratch, the empty panel is shown immediately. In that moment, if we insert a Pen Drive the empty panel is still showed. The previous behaviour was to hide the empty panel and show nothing. Signed-off-by: Manuel Kaufmann --- diff --git a/activity.py b/activity.py index a5c6942..efdaa29 100644 --- a/activity.py +++ b/activity.py @@ -253,13 +253,11 @@ class JukeboxActivity(activity.Activity): def __mount_added_cb(self, volume_monitor, device): logging.debug('Mountpoint added. Checking...') - self.view_area.set_current_page(0) self.remove_alert(self._alert) self.playlist_widget.update() def __mount_removed_cb(self, volume_monitor, device): logging.debug('Mountpoint removed. Checking...') - self.view_area.set_current_page(0) self.remove_alert(self._alert) self.playlist_widget.update() -- cgit v0.9.1