mirror of
https://github.com/Tha14/toxic.git
synced 2025-07-02 09:26:45 +02:00
Use enum to identify window types instead of bool variables
This commit is contained in:
@ -603,7 +603,7 @@ ToxWindow *new_prompt(void)
|
||||
}
|
||||
|
||||
ret->num = -1;
|
||||
ret->is_prompt = true;
|
||||
ret->type = WINDOW_TYPE_PROMPT;
|
||||
|
||||
ret->onKey = &prompt_onKey;
|
||||
ret->onDraw = &prompt_onDraw;
|
||||
|
Reference in New Issue
Block a user