mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-12-18 21:47:53 +08:00
fix: window manager called on Android & bugfix etc.
This commit is contained in:
parent
1b3ad55f9e
commit
97ad7a42bd
@ -336,6 +336,9 @@ closeConnection({String? id}) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void window_on_top(int? id) {
|
void window_on_top(int? id) {
|
||||||
|
if (!isDesktop) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (id == null) {
|
if (id == null) {
|
||||||
// main window
|
// main window
|
||||||
windowManager.restore();
|
windowManager.restore();
|
||||||
|
@ -769,7 +769,7 @@ class _RemoteMenubarState extends State<RemoteMenubar> {
|
|||||||
: MenuButton(
|
: MenuButton(
|
||||||
icon: _getVoiceCallIcon(),
|
icon: _getVoiceCallIcon(),
|
||||||
tooltip: translate(tooltipText),
|
tooltip: translate(tooltipText),
|
||||||
onPressed: () => bind.sessionRequestVoiceCall(id: widget.id),
|
onPressed: () => bind.sessionCloseVoiceCall(id: widget.id),
|
||||||
color: _MenubarTheme.redColor,
|
color: _MenubarTheme.redColor,
|
||||||
hoverColor: _MenubarTheme.hoverRedColor,
|
hoverColor: _MenubarTheme.hoverRedColor,
|
||||||
);
|
);
|
||||||
|
@ -434,9 +434,6 @@ function toggleMenuState() {
|
|||||||
var c = handler.get_option("codec-preference");
|
var c = handler.get_option("codec-preference");
|
||||||
if (!c) c = "auto";
|
if (!c) c = "auto";
|
||||||
values.push(c);
|
values.push(c);
|
||||||
var a = handler.get_audio_mode();
|
|
||||||
if (!a) a = "guest-to-host";
|
|
||||||
values.push(a);
|
|
||||||
for (var el in $$(menu#display-options li)) {
|
for (var el in $$(menu#display-options li)) {
|
||||||
el.attributes.toggleClass("selected", values.indexOf(el.id) >= 0);
|
el.attributes.toggleClass("selected", values.indexOf(el.id) >= 0);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user