mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
safer navigator.pop
This commit is contained in:
@@ -32,6 +32,7 @@ void Function() loadingCancelCallback;
|
||||
void showLoading(String text, BuildContext context) {
|
||||
if (_hasDialog && context != null) {
|
||||
Navigator.pop(context);
|
||||
_hasDialog = false;
|
||||
}
|
||||
dismissLoading();
|
||||
if (isAndroid) {
|
||||
@@ -122,6 +123,7 @@ void msgbox(String type, String title, String text, BuildContext context,
|
||||
dismissLoading();
|
||||
if (_hasDialog) {
|
||||
Navigator.pop(context);
|
||||
_hasDialog = false;
|
||||
}
|
||||
final buttons = [
|
||||
Expanded(child: Container()),
|
||||
|
||||
@@ -6,11 +6,7 @@ class PlatformFFI {
|
||||
static void clearRgbaFrame() {}
|
||||
|
||||
static Uint8List getRgba() {
|
||||
var data = js.context.callMethod('getRgba');
|
||||
if (data != null) {
|
||||
return Uint8List.sublistView(data);
|
||||
}
|
||||
return null;
|
||||
return js.context.callMethod('getRgba');
|
||||
}
|
||||
|
||||
static Future<String> getVersion() async {
|
||||
|
||||
Reference in New Issue
Block a user