debug done
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
parent
1d122b5a73
commit
bea1eacf72
@ -1464,7 +1464,8 @@ class _DisplayMenuState extends State<_DisplayMenu> {
|
||||
return Offstage();
|
||||
}
|
||||
final ffiModel = widget.ffi.ffiModel;
|
||||
final visible = !widget.ffi.canvasModel.cursorEmbedded;
|
||||
final visible =
|
||||
!widget.ffi.canvasModel.cursorEmbedded && !ffiModel.pi.is_wayland;
|
||||
if (!visible) return Offstage();
|
||||
final enabled = !ffiModel.viewOnly;
|
||||
final state = ShowRemoteCursorState.find(widget.id);
|
||||
|
@ -453,9 +453,14 @@ class FfiModel with ChangeNotifier {
|
||||
bind.sessionGetToggleOptionSync(id: peerId, arg: 'view-only'));
|
||||
}
|
||||
if (connType == ConnType.defaultConn) {
|
||||
try {
|
||||
_pi.platform_additions = json.decode(evt['platform_additions']);
|
||||
} catch (e) {}
|
||||
final platform_additions = evt['platform_additions'];
|
||||
if (platform_additions != null && platform_additions != '') {
|
||||
try {
|
||||
_pi.platform_additions = json.decode(platform_additions);
|
||||
} catch (e) {
|
||||
debugPrint('Failed to decode platform_additions $e');
|
||||
}
|
||||
}
|
||||
}
|
||||
notifyListeners();
|
||||
}
|
||||
|
@ -509,7 +509,7 @@ impl InvokeUiSession for FlutterHandler {
|
||||
("features", &features),
|
||||
("current_display", &pi.current_display.to_string()),
|
||||
("resolutions", &resolutions),
|
||||
("platform_additions": &pi.platform_additions),
|
||||
("platform_additions", &pi.platform_additions),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
@ -848,7 +848,7 @@ impl Connection {
|
||||
{
|
||||
pi.platform_additions = format!(r#"
|
||||
{{
|
||||
"is_wayland": {},
|
||||
"is_wayland": {}
|
||||
}}
|
||||
"#, crate::platform::current_is_wayland());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user