mirror of
https://github.com/Tha14/toxic.git
synced 2025-12-07 02:46:36 +01:00
Greatly reduce redundant window refreshing
This should substantially reduce CPU usage and possibly fix some issues with interface jittering/flashing
This commit is contained in:
@@ -125,6 +125,8 @@ void on_self_connection_status(Tox *m, Tox_Connection connection_status, void *u
|
||||
UNUSED_VAR(userdata);
|
||||
StatusBar *statusbar = prompt->stb;
|
||||
statusbar->connection = connection_status;
|
||||
|
||||
flag_interface_refresh();
|
||||
}
|
||||
|
||||
/* Updates own nick in prompt statusbar */
|
||||
|
||||
Reference in New Issue
Block a user