mirror of
https://github.com/Tha14/toxic.git
synced 2025-06-29 19:36:46 +02:00
Use enum to identify window types instead of bool variables
This commit is contained in:
@ -1395,7 +1395,7 @@ ToxWindow *new_chat(Tox *m, uint32_t friendnum)
|
||||
exit_toxic_err("failed in new_chat", FATALERR_MEMORY);
|
||||
}
|
||||
|
||||
ret->is_chat = true;
|
||||
ret->type = WINDOW_TYPE_CHAT;
|
||||
|
||||
ret->onKey = &chat_onKey;
|
||||
ret->onDraw = &chat_onDraw;
|
||||
|
Reference in New Issue
Block a user