diff --git a/English.lproj/MainMenu.xib b/English.lproj/MainMenu.xib index ed7355e..197a2b1 100644 --- a/English.lproj/MainMenu.xib +++ b/English.lproj/MainMenu.xib @@ -124,6 +124,12 @@ CA + + + + + + diff --git a/core/CocoaRestClientAppDelegate.h b/core/CocoaRestClientAppDelegate.h index b3aed11..ad984ee 100644 --- a/core/CocoaRestClientAppDelegate.h +++ b/core/CocoaRestClientAppDelegate.h @@ -148,6 +148,7 @@ - (void) deleteSavedRequest: (NSNotification *) notification; - (NSString *) pathForDataFile; - (void) loadDataFromDisk; +- (IBAction) reloadRequestsDrawer:(id)sender; - (void) saveDataToDisk; - (void) applicationWillTerminate: (NSNotification *)note; - (IBAction) openTimeoutDialog:(id) sender; diff --git a/core/CocoaRestClientAppDelegate.m b/core/CocoaRestClientAppDelegate.m index 739083e..10594e8 100644 --- a/core/CocoaRestClientAppDelegate.m +++ b/core/CocoaRestClientAppDelegate.m @@ -1463,6 +1463,11 @@ - (void) loadDataFromDisk { savedRequestsArray = [[NSMutableArray alloc] initWithArray:[NSKeyedUnarchiver unarchiveObjectWithFile:path]]; } +- (IBAction) reloadRequestsDrawer:(id)sender { + [self loadDataFromDisk]; + [self.savedOutlineView reloadData]; +} + - (void) importRequestsFromArray:(NSArray *)requests { [exportRequestsController prepareToDisplayImports:requests]; [NSApp beginSheet: [exportRequestsController window]