Skip to content

Commit

Permalink
Disable delete button in navigation bar is delete was disabled for lo…
Browse files Browse the repository at this point in the history
…g files
  • Loading branch information
Oggerschummer committed Feb 5, 2015
1 parent 44c89a3 commit 12ab17a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions SuperLogger/SuperLogerListView.m
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,10 @@ - (void)viewDidLoad
[self.navigationBar pushNavigationItem:self.navigationItem animated:NO];
UIBarButtonItem *backBtn=[[UIBarButtonItem alloc] initWithTitle:NSLocalizedStringFromTableInBundle( @"SL_Back", @"SLLocalizable",myBundle, @"Back") style:UIBarButtonItemStylePlain target:self action:@selector(done)];
[self.navigationItem setLeftBarButtonItem:backBtn];
UIBarButtonItem *cleanBtn=[[UIBarButtonItem alloc] initWithTitle:NSLocalizedStringFromTableInBundle( @"SL_Clean",@"SLLocalizable", myBundle, @"Clean") style:UIBarButtonItemStylePlain target:self action:@selector(clean)];
[self.navigationItem setRightBarButtonItem:cleanBtn];
if ([SuperLogger sharedInstance].enableDelete){
UIBarButtonItem *cleanBtn=[[UIBarButtonItem alloc] initWithTitle:NSLocalizedStringFromTableInBundle( @"SL_Clean",@"SLLocalizable", myBundle, @"Clean") style:UIBarButtonItemStylePlain target:self action:@selector(clean)];
[self.navigationItem setRightBarButtonItem:cleanBtn];
}
}

-(void)done
Expand Down Expand Up @@ -214,7 +216,7 @@ - (void)exportTapped:(id)sender

//- (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex
//{
//
//
// if (buttonIndex == 0) {
// [[SuperLogger sharedInstance]starWithFilename:_tempFilename];
// self.fileList = nil;
Expand Down

0 comments on commit 12ab17a

Please sign in to comment.