Commit b9369bf7 authored by Felix Paul Kühne's avatar Felix Paul Kühne

hide all right bar items when library is empty (close #14801)

(cherry picked from commit 31854a41)
parent 9acd094f
......@@ -423,7 +423,7 @@ static NSString *kUsingTableViewToShowData = @"UsingTableViewToShowData";
self.emptyLibraryView.learnMoreButton.hidden = inFolder;
self.emptyLibraryView.frame = self.view.bounds;
[self.view addSubview:self.emptyLibraryView];
self.navigationItem.rightBarButtonItem = nil;
self.navigationItem.rightBarButtonItems = nil;
} else {
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
UIBarButtonItem *toggleDisplayedView = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"tableViewIcon"] style:UIBarButtonItemStylePlain target:self action:@selector(toggleDisplayedView:)];
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment