mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
interactiveview not work on stack
This commit is contained in:
@@ -42,8 +42,9 @@ class FfiModel with ChangeNotifier {
|
||||
}
|
||||
|
||||
void update(String id, BuildContext context) {
|
||||
var evt = FFI.popEvent();
|
||||
if (evt != null) {
|
||||
for (;;) {
|
||||
var evt = FFI.popEvent();
|
||||
if (evt == null) break;
|
||||
var name = evt['name'];
|
||||
if (name == 'msgbox') {
|
||||
handleMsgbox(evt, id, context);
|
||||
@@ -139,7 +140,7 @@ class ImageModel with ChangeNotifier {
|
||||
|
||||
void update(ui.Image image) {
|
||||
_image = image;
|
||||
notifyListeners();
|
||||
if (image != null) notifyListeners();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user