mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-12-12 19:17:58 +00:00
feat: add audio mode config
This commit is contained in:
@@ -94,6 +94,10 @@ impl<T: InvokeUiSession> Session<T> {
|
||||
}
|
||||
|
||||
pub fn save_audio_mode(&self, value: String) {
|
||||
let mode = LoginConfigHandler::get_audio_mode_enum(value.as_str(), false);
|
||||
if let Some(mode)= mode {
|
||||
self.send(Data::ChangeAudioMode(mode));
|
||||
}
|
||||
let msg = self.lc.write().unwrap().save_audio_mode(value);
|
||||
// Notify remote guest that the audio mode has been changed.
|
||||
if let Some(msg) = msg {
|
||||
|
||||
Reference in New Issue
Block a user