mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-27 00:43:28 +01:00
Don't allow changing device while transmission is active
This commit is contained in:
parent
c678d41709
commit
6c2ae4ad24
@ -530,6 +530,11 @@ void cmd_change_device(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (
|
||||
goto on_error;
|
||||
}
|
||||
|
||||
if ( ASettins.ttas ) { /* Transmission is active */
|
||||
error_str = "Cannot change device while active transmission";
|
||||
goto on_error;
|
||||
}
|
||||
|
||||
_devices type;
|
||||
|
||||
if ( strcmp(argv[1], "in") == 0 ) /* Input devices */
|
||||
|
Loading…
Reference in New Issue
Block a user