mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 21:37:58 +03:00
Ladybird/AppKit: Enable reload action
Is necessary, since history navigation was refactored
This commit is contained in:
parent
af90978454
commit
8a7afffdd3
Notes:
sideshowbarker
2024-07-17 06:51:40 +09:00
Author: https://github.com/kevmeyer Commit: https://github.com/LadybirdBrowser/ladybird/commit/8a7afffdd3 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/363 Reviewed-by: https://github.com/trflynn89 ✅
@ -421,7 +421,7 @@ static NSString* const TOOLBAR_TAB_OVERVIEW_IDENTIFIER = @"ToolbarTabOverviewIde
|
|||||||
auto* button = [self create_button:NSImageNameRefreshTemplate
|
auto* button = [self create_button:NSImageNameRefreshTemplate
|
||||||
with_action:@selector(reload:)
|
with_action:@selector(reload:)
|
||||||
with_tooltip:@"Reload page"];
|
with_tooltip:@"Reload page"];
|
||||||
[button setEnabled:NO];
|
[button setEnabled:YES];
|
||||||
|
|
||||||
_reload_toolbar_item = [[NSToolbarItem alloc] initWithItemIdentifier:TOOLBAR_RELOAD_IDENTIFIER];
|
_reload_toolbar_item = [[NSToolbarItem alloc] initWithItemIdentifier:TOOLBAR_RELOAD_IDENTIFIER];
|
||||||
[_reload_toolbar_item setView:button];
|
[_reload_toolbar_item setView:button];
|
||||||
|
Loading…
Reference in New Issue
Block a user