debug done

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2023-03-21 12:25:47 +08:00
parent 1d122b5a73
commit bea1eacf72
4 changed files with 12 additions and 6 deletions

View File

@@ -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();
}