mirror of
https://github.com/etlegacy/Update-Installer.git
synced 2024-11-22 20:01:20 +00:00
Disable the window close button in the update dialog on Mac.
This prevents the dialog being closed part-way through update installation, leaving the user unable to restart the application afterwards by clicking the 'Finish' button.
This commit is contained in:
parent
91f402afa2
commit
a42e9475b5
1 changed files with 1 additions and 2 deletions
|
@ -70,8 +70,7 @@ void UpdateDialogCocoa::init()
|
|||
int height = 100;
|
||||
|
||||
d->window = [[NSWindow alloc] initWithContentRect:NSMakeRect(200, 200, width, height)
|
||||
styleMask:NSTitledWindowMask | NSClosableWindowMask |
|
||||
NSMiniaturizableWindowMask
|
||||
styleMask:NSTitledWindowMask | NSMiniaturizableWindowMask
|
||||
backing:NSBackingStoreBuffered defer:NO];
|
||||
[d->window setTitle:@"Mendeley Updater"];
|
||||
|
||||
|
|
Loading…
Reference in a new issue