1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-01-01 12:35:22 +00:00

macOS disable green maximize button on Inspector window (#3563)

Fixes #3486
This commit is contained in:
SweetPPro 2022-08-02 15:19:03 +02:00 committed by GitHub
parent 2ff4dd139f
commit 3982532d65
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -91,6 +91,10 @@ typedef NS_ENUM(unsigned int, tabTag) {
window.becomesKeyOnlyIfNeeded = YES;
//disable green maximise window button
//https://github.com/transmission/transmission/issues/3486
[[window standardWindowButton:NSWindowZoomButton] setEnabled:NO];
//set tab tooltips
[self.fTabs.cell setToolTip:NSLocalizedString(@"General Info", "Inspector -> tab") forSegment:TAB_GENERAL_TAG];
[self.fTabs.cell setToolTip:NSLocalizedString(@"Activity", "Inspector -> tab") forSegment:TAB_ACTIVITY_TAG];