mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
Opt-in to secure coding explicitly (#7020)
This commit is contained in:
@@ -843,6 +843,8 @@ void onTorrentCompletenessChanged(tr_torrent* tor, tr_completeness status, bool
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#pragma mark - NSApplicationDelegate
|
||||||
|
|
||||||
- (void)applicationWillFinishLaunching:(NSNotification*)notification
|
- (void)applicationWillFinishLaunching:(NSNotification*)notification
|
||||||
{
|
{
|
||||||
// user notifications
|
// user notifications
|
||||||
@@ -1092,6 +1094,13 @@ void onTorrentCompletenessChanged(tr_torrent* tor, tr_completeness status, bool
|
|||||||
tr_sessionClose(self.fLib);
|
tr_sessionClose(self.fLib);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (BOOL)applicationSupportsSecureRestorableState:(NSApplication*)app
|
||||||
|
{
|
||||||
|
return YES;
|
||||||
|
}
|
||||||
|
|
||||||
|
#pragma mark -
|
||||||
|
|
||||||
- (tr_session*)sessionHandle
|
- (tr_session*)sessionHandle
|
||||||
{
|
{
|
||||||
return self.fLib;
|
return self.fLib;
|
||||||
|
|||||||
Reference in New Issue
Block a user