From c6b1d8851f65758ad56be1cfa9b0480ef4f2c650 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C5=93ur?= Date: Tue, 26 Sep 2023 04:48:23 +0200 Subject: [PATCH] fix: broken UI and windows on macOS Sonoma (#6016) --- macosx/Base.lproj/InfoActivityView.xib | 4 ++-- macosx/Base.lproj/InfoGeneralView.xib | 2 +- macosx/Base.lproj/InfoOptionsView.xib | 2 +- macosx/CreatorWindowController.mm | 2 +- macosx/FilterBar.xib | 2 +- macosx/InfoFileView.xib | 2 +- macosx/InfoPeersView.xib | 2 +- macosx/InfoTrackersView.xib | 2 +- macosx/MessageWindowController.mm | 2 +- macosx/PrefsController.mm | 4 ++-- macosx/StatsWindowController.mm | 2 +- macosx/StatusBar.xib | 2 +- 12 files changed, 14 insertions(+), 14 deletions(-) diff --git a/macosx/Base.lproj/InfoActivityView.xib b/macosx/Base.lproj/InfoActivityView.xib index f59a2bd60..9b5a04de3 100644 --- a/macosx/Base.lproj/InfoActivityView.xib +++ b/macosx/Base.lproj/InfoActivityView.xib @@ -31,7 +31,7 @@ - + @@ -112,7 +112,7 @@ - + diff --git a/macosx/Base.lproj/InfoGeneralView.xib b/macosx/Base.lproj/InfoGeneralView.xib index cb44d3038..cd3aecc3b 100644 --- a/macosx/Base.lproj/InfoGeneralView.xib +++ b/macosx/Base.lproj/InfoGeneralView.xib @@ -21,7 +21,7 @@ - + diff --git a/macosx/Base.lproj/InfoOptionsView.xib b/macosx/Base.lproj/InfoOptionsView.xib index f678b0073..1e9869340 100644 --- a/macosx/Base.lproj/InfoOptionsView.xib +++ b/macosx/Base.lproj/InfoOptionsView.xib @@ -34,7 +34,7 @@ - + diff --git a/macosx/CreatorWindowController.mm b/macosx/CreatorWindowController.mm index bbb79702a..f56e05bfe 100644 --- a/macosx/CreatorWindowController.mm +++ b/macosx/CreatorWindowController.mm @@ -24,7 +24,7 @@ typedef NS_ENUM(NSUInteger, TrackerSegmentTag) { TrackerSegmentTagRemove = 1, }; -@interface CreatorWindowController () +@interface CreatorWindowController () @property(nonatomic) IBOutlet NSImageView* fIconView; @property(nonatomic) IBOutlet NSTextField* fNameField; diff --git a/macosx/FilterBar.xib b/macosx/FilterBar.xib index 7f60c6e86..377b3f174 100644 --- a/macosx/FilterBar.xib +++ b/macosx/FilterBar.xib @@ -22,7 +22,7 @@ - + diff --git a/macosx/InfoFileView.xib b/macosx/InfoFileView.xib index 7970823e5..d71ff162e 100644 --- a/macosx/InfoFileView.xib +++ b/macosx/InfoFileView.xib @@ -17,7 +17,7 @@ - + diff --git a/macosx/InfoPeersView.xib b/macosx/InfoPeersView.xib index 4389414da..9a7db7e04 100644 --- a/macosx/InfoPeersView.xib +++ b/macosx/InfoPeersView.xib @@ -17,7 +17,7 @@ - + diff --git a/macosx/InfoTrackersView.xib b/macosx/InfoTrackersView.xib index 62fc47568..9e4eaa4b1 100644 --- a/macosx/InfoTrackersView.xib +++ b/macosx/InfoTrackersView.xib @@ -15,7 +15,7 @@ - + diff --git a/macosx/MessageWindowController.mm b/macosx/MessageWindowController.mm index 34fdcd548..fa2791459 100644 --- a/macosx/MessageWindowController.mm +++ b/macosx/MessageWindowController.mm @@ -21,7 +21,7 @@ typedef NS_ENUM(NSUInteger, LevelButtonLevel) { static NSTimeInterval const kUpdateSeconds = 0.75; -@interface MessageWindowController () +@interface MessageWindowController () @property(nonatomic) IBOutlet NSTableView* fMessageTable; diff --git a/macosx/PrefsController.mm b/macosx/PrefsController.mm index 31a4f22e4..94a9a96e6 100644 --- a/macosx/PrefsController.mm +++ b/macosx/PrefsController.mm @@ -41,7 +41,7 @@ static char const* const kRPCKeychainName = "Remote"; static NSString* const kWebUIURLFormat = @"http://localhost:%ld/"; -@interface PrefsController () +@interface PrefsController () @property(nonatomic, readonly) tr_session* fHandle; @property(nonatomic, readonly) NSUserDefaults* fDefaults; @@ -491,7 +491,7 @@ static NSString* const kWebUIURLFormat = @"http://localhost:%ld/"; case PortStatusChecking: break; default: - NSAssert(NO, @"Port checker returned invalid status: %d", self.fPortChecker.status); + NSAssert(NO, @"Port checker returned invalid status: %lu", self.fPortChecker.status); break; } self.fPortChecker = nil; diff --git a/macosx/StatsWindowController.mm b/macosx/StatsWindowController.mm index 00924f07b..61ff5cecd 100644 --- a/macosx/StatsWindowController.mm +++ b/macosx/StatsWindowController.mm @@ -8,7 +8,7 @@ static NSTimeInterval const kUpdateSeconds = 1.0; -@interface StatsWindowController () +@interface StatsWindowController () @property(nonatomic) IBOutlet NSTextField* fUploadedField; @property(nonatomic) IBOutlet NSTextField* fUploadedAllField; diff --git a/macosx/StatusBar.xib b/macosx/StatusBar.xib index 6b1b4f421..a3792ac0a 100644 --- a/macosx/StatusBar.xib +++ b/macosx/StatusBar.xib @@ -18,7 +18,7 @@ - +