mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-21 01:55:07 +00:00
MacPDF: In window controller, use window directly
No need to go through the view now that there's a dedicated window controller. No behavior change.
This commit is contained in:
parent
c0d8131a26
commit
1f1a596a46
|
@ -58,8 +58,7 @@
|
|||
alert.accessoryView = textField;
|
||||
alert.window.initialFirstResponder = textField;
|
||||
|
||||
NSWindow* window = _pdfView.window;
|
||||
[alert beginSheetModalForWindow:window
|
||||
[alert beginSheetModalForWindow:self.window
|
||||
completionHandler:^(NSModalResponse response) {
|
||||
if (response == NSAlertFirstButtonReturn)
|
||||
[self->_pdfView goToPage:[textField intValue]];
|
||||
|
@ -70,7 +69,7 @@
|
|||
|
||||
- (void)pageChanged
|
||||
{
|
||||
[_pdfView.window setSubtitle:
|
||||
[self.window setSubtitle:
|
||||
[NSString stringWithFormat:@"Page %d of %d", [_pdfView page], _pdfDocument.pdf->get_page_count()]];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue