Parcourir la source

library: leave edit mode when switching to the sidebar (close #9704)

Felix Paul Kühne il y a 11 ans
Parent
commit
cdbf40e2df
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      AspenProject/VLCPlaylistViewController.m

+ 3 - 0
AspenProject/VLCPlaylistViewController.m

@@ -459,6 +459,9 @@
 - (IBAction)leftButtonAction:(id)sender
 {
     [[(VLCAppDelegate*)[UIApplication sharedApplication].delegate revealController] toggleSidebar:![(VLCAppDelegate*)[UIApplication sharedApplication].delegate revealController].sidebarShowing duration:kGHRevealSidebarDefaultAnimationDuration];
+
+    if (self.isEditing)
+        [self setEditing:NO animated:YES];
 }
 
 - (IBAction)backToAllItems:(id)sender