Opt-in to secure coding explicitly (#7020)
This commit is contained in:
parent
e028ee4b1d
commit
fe385259cc
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue