mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 04:25:13 +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
Notes:
sideshowbarker
2024-07-16 18:03:21 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/1f1a596a46 Pull-request: https://github.com/SerenityOS/serenity/pull/21361
1 changed files with 2 additions and 3 deletions
|
@ -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…
Add table
Reference in a new issue