mirror of
https://github.com/Tha14/toxic.git
synced 2025-04-16 23:42:57 +02: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;
|
goto on_error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( ASettins.ttas ) { /* Transmission is active */
|
||||||
|
error_str = "Cannot change device while active transmission";
|
||||||
|
goto on_error;
|
||||||
|
}
|
||||||
|
|
||||||
_devices type;
|
_devices type;
|
||||||
|
|
||||||
if ( strcmp(argv[1], "in") == 0 ) /* Input devices */
|
if ( strcmp(argv[1], "in") == 0 ) /* Input devices */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user