dismiss menu after switching monitor

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou 2023-01-29 14:36:20 +08:00
parent 667f4c3bd3
commit d1070b88bb

View File

@ -362,6 +362,9 @@ class _RemoteMenubarState extends State<RemoteMenubar> {
),
)),
onPressed: () {
if (Navigator.canPop(context)) {
Navigator.pop(context);
}
RxInt display = CurrentDisplayState.find(widget.id);
if (display.value != i) {
bind.sessionSwitchDisplay(id: widget.id, value: i);