mirror of
https://github.com/Tha14/toxic.git
synced 2025-12-14 04:46:36 +01:00
Use enum to identify window types instead of bool variables
This commit is contained in:
@@ -334,7 +334,7 @@ bool input_handle(ToxWindow *self, wint_t key, int x, int mx_x)
|
||||
maybe convert entire function to if/else and make them all customizable keys? */
|
||||
if (!match) {
|
||||
if (key == user_settings->key_toggle_peerlist) {
|
||||
if (self->is_conference) {
|
||||
if (self->type == WINDOW_TYPE_CONFERENCE) {
|
||||
self->show_peerlist ^= 1;
|
||||
redraw_conference_win(self);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user