Ticket #4405: 0001-Do-not-hide-empty-panel-when-a-pen-drive-is-un-mount.patch

File 0001-Do-not-hide-empty-panel-when-a-pen-drive-is-un-mount.patch, 1.2 KB (added by humitos, 11 years ago)
  • activity.py

    From fc4c93fca5d34a240d27c8d4132c06c4b190dc7e Mon Sep 17 00:00:00 2001
    From: Manuel Kaufmann <humitos@gmail.com>
    Date: Mon, 4 Feb 2013 17:51:57 -0300
    Subject: [PATCH Jukebox] 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 <humitos@gmail.com>
    ---
     activity.py | 2 --
     1 file changed, 2 deletions(-)
    
    diff --git a/activity.py b/activity.py
    index 380cc2c..dd56984 100644
    a b class JukeboxActivity(activity.Activity): 
    261261
    262262    def __mount_added_cb(self, volume_monitor, device):
    263263        logging.debug('Mountpoint added. Checking...')
    264         self.view_area.set_current_page(0)
    265264        self.remove_alert(self._alert)
    266265        self.playlist_widget.update()
    267266
    268267    def __mount_removed_cb(self, volume_monitor, device):
    269268        logging.debug('Mountpoint removed. Checking...')
    270         self.view_area.set_current_page(0)
    271269        self.remove_alert(self._alert)
    272270        self.playlist_widget.update()
    273271