fix: window manager called on Android & bugfix etc.

This commit is contained in:
Kingtous
2023-02-16 10:58:27 +08:00
parent 1b3ad55f9e
commit 97ad7a42bd
3 changed files with 4 additions and 4 deletions

View File

@@ -336,6 +336,9 @@ closeConnection({String? id}) {
}
void window_on_top(int? id) {
if (!isDesktop) {
return;
}
if (id == null) {
// main window
windowManager.restore();

View File

@@ -769,7 +769,7 @@ class _RemoteMenubarState extends State<RemoteMenubar> {
: MenuButton(
icon: _getVoiceCallIcon(),
tooltip: translate(tooltipText),
onPressed: () => bind.sessionRequestVoiceCall(id: widget.id),
onPressed: () => bind.sessionCloseVoiceCall(id: widget.id),
color: _MenubarTheme.redColor,
hoverColor: _MenubarTheme.hoverRedColor,
);