diff --git a/macosx/Controller.mm b/macosx/Controller.mm index 3f913d96a..0a6710240 100644 --- a/macosx/Controller.mm +++ b/macosx/Controller.mm @@ -843,6 +843,8 @@ void onTorrentCompletenessChanged(tr_torrent* tor, tr_completeness status, bool } } +#pragma mark - NSApplicationDelegate + - (void)applicationWillFinishLaunching:(NSNotification*)notification { // user notifications @@ -1092,6 +1094,13 @@ void onTorrentCompletenessChanged(tr_torrent* tor, tr_completeness status, bool tr_sessionClose(self.fLib); } +- (BOOL)applicationSupportsSecureRestorableState:(NSApplication*)app +{ + return YES; +} + +#pragma mark - + - (tr_session*)sessionHandle { return self.fLib;