Codechange: make EventState a scoped enum

This commit is contained in:
Rubidium
2026-06-14 21:29:41 +02:00
committed by rubidium42
parent 2df98643ad
commit 5a6469ad6f
28 changed files with 147 additions and 147 deletions
+3 -3
View File
@@ -312,13 +312,13 @@ struct BuildDocksToolbarWindow : Window {
/**
* Handler for global hotkeys of the BuildDocksToolbarWindow.
* @param hotkey Hotkey
* @return ES_HANDLED if hotkey was accepted.
* @return EventState::Handled if hotkey was accepted.
*/
static EventState DockToolbarGlobalHotkeys(int hotkey)
{
if (_game_mode != GameMode::Normal) return ES_NOT_HANDLED;
if (_game_mode != GameMode::Normal) return EventState::NotHandled;
Window *w = ShowBuildDocksToolbar();
if (w == nullptr) return ES_NOT_HANDLED;
if (w == nullptr) return EventState::NotHandled;
return w->OnHotkey(hotkey);
}