Opt-in to secure coding explicitly (#7020)

This commit is contained in:
Cœur 2024-08-13 02:00:02 +02:00 committed by GitHub
parent e028ee4b1d
commit fe385259cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 0 deletions

View File

@ -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;