dismiss menu after switching monitor
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
parent
667f4c3bd3
commit
d1070b88bb
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue