mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-16 06:21:29 +03:00
@@ -299,14 +299,22 @@ class Header: Reactor.Component {
|
||||
header.update();
|
||||
handler.record_status(recording);
|
||||
// 0 is just a dummy value. It will be ignored by the handler.
|
||||
if (recording)
|
||||
if (recording) {
|
||||
handler.refresh_video(0);
|
||||
else
|
||||
handler.record_screen(false, 0, display_width, display_height);
|
||||
if (handler.version_cmp(pi.version, '1.2.4') >= 0) handler.record_screen(recording, pi.current_display, display_width, display_height);
|
||||
}
|
||||
else {
|
||||
handler.record_screen(recording, pi.current_display, display_width, display_height);
|
||||
}
|
||||
}
|
||||
|
||||
event click $(#screen) (_, me) {
|
||||
if (pi.current_display == me.index) return;
|
||||
if (recording) {
|
||||
recording = false;
|
||||
handler.record_screen(false, pi.current_display, display_width, display_height);
|
||||
handler.record_status(false);
|
||||
}
|
||||
handler.switch_display(me.index);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user