mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:28:11 +00:00
LibCore+LibGUI: Switch to using AK::is and AK::downcast
This commit is contained in:
parent
71556e39a4
commit
e0b8b4ac67
14 changed files with 341 additions and 98 deletions
|
@ -152,9 +152,9 @@ Action::Action(const StringView& text, const Shortcut& shortcut, RefPtr<Gfx::Bit
|
|||
, m_shortcut(shortcut)
|
||||
, m_checkable(checkable)
|
||||
{
|
||||
if (parent && Core::is<Widget>(*parent)) {
|
||||
if (parent && is<Widget>(*parent)) {
|
||||
m_scope = ShortcutScope::WidgetLocal;
|
||||
} else if (parent && Core::is<Window>(*parent)) {
|
||||
} else if (parent && is<Window>(*parent)) {
|
||||
m_scope = ShortcutScope::WindowLocal;
|
||||
} else {
|
||||
m_scope = ShortcutScope::ApplicationGlobal;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue