Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions GWorkspace/GWorkspace.m
Original file line number Diff line number Diff line change
Expand Up @@ -2870,8 +2870,8 @@ - (BOOL)terminating
- (void) showAboutAgoraWindow: (id) sender {
if (aboutAgoraWindow == nil) {
NSRect aRect = NSMakeRect(0,0,350,500);
aRect.origin.x = (NSScreen.mainScreen.frame.size.width / 2) - (aRect.size.width / 2);
aRect.origin.y = (NSScreen.mainScreen.frame.size.height / 2) - (aRect.size.height / 2);
aRect.origin.x = [[NSScreen mainScreen] frame].size.width / 2 - aRect.size.width / 2;
aRect.origin.y = [[NSScreen mainScreen] frame].size.height / 2 - aRect.size.height / 2;
NSWindowStyleMask aMask = NSWindowStyleMaskClosable;
aboutAgoraWindow = [[NSWindow alloc] initWithContentRect: aRect
styleMask: aMask
Expand All @@ -2889,7 +2889,7 @@ - (void) showAboutAgoraWindow: (id) sender {
}

- (void) openSystemPreferences: (id) sender {
[NSWorkspace.sharedWorkspace launchApplication: @"SystemPreferences"];
[[NSWorkspace sharedWorkspace] launchApplication: @"SystemPreferences"];
}

- (void) forceQuit: (id) sender {
Expand Down