safer navigator.pop
This commit is contained in:
parent
b24c997a20
commit
eebb7e1f4c
@ -32,6 +32,7 @@ void Function() loadingCancelCallback;
|
|||||||
void showLoading(String text, BuildContext context) {
|
void showLoading(String text, BuildContext context) {
|
||||||
if (_hasDialog && context != null) {
|
if (_hasDialog && context != null) {
|
||||||
Navigator.pop(context);
|
Navigator.pop(context);
|
||||||
|
_hasDialog = false;
|
||||||
}
|
}
|
||||||
dismissLoading();
|
dismissLoading();
|
||||||
if (isAndroid) {
|
if (isAndroid) {
|
||||||
@ -122,6 +123,7 @@ void msgbox(String type, String title, String text, BuildContext context,
|
|||||||
dismissLoading();
|
dismissLoading();
|
||||||
if (_hasDialog) {
|
if (_hasDialog) {
|
||||||
Navigator.pop(context);
|
Navigator.pop(context);
|
||||||
|
_hasDialog = false;
|
||||||
}
|
}
|
||||||
final buttons = [
|
final buttons = [
|
||||||
Expanded(child: Container()),
|
Expanded(child: Container()),
|
||||||
|
@ -6,11 +6,7 @@ class PlatformFFI {
|
|||||||
static void clearRgbaFrame() {}
|
static void clearRgbaFrame() {}
|
||||||
|
|
||||||
static Uint8List getRgba() {
|
static Uint8List getRgba() {
|
||||||
var data = js.context.callMethod('getRgba');
|
return js.context.callMethod('getRgba');
|
||||||
if (data != null) {
|
|
||||||
return Uint8List.sublistView(data);
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static Future<String> getVersion() async {
|
static Future<String> getVersion() async {
|
||||||
|
File diff suppressed because one or more lines are too long
BIN
web/LibYUV.wasm
BIN
web/LibYUV.wasm
Binary file not shown.
@ -32,9 +32,8 @@
|
|||||||
<title>RustDesk</title>
|
<title>RustDesk</title>
|
||||||
<link rel="manifest" href="manifest.json">
|
<link rel="manifest" href="manifest.json">
|
||||||
<script src="ogvjs/ogv.js"></script>
|
<script src="ogvjs/ogv.js"></script>
|
||||||
<script src="./LibYUV.js"></script>
|
<script type="module" crossorigin src="/assets/index.9eb7e514.js"></script>
|
||||||
<script type="module" crossorigin src="/assets/index.a4c96927.js"></script>
|
<link rel="modulepreload" href="/assets/vendor.981241b3.js">
|
||||||
<link rel="modulepreload" href="/assets/vendor.fd8ceed9.js">
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<!-- This script installs service_worker.js to provide PWA functionality to
|
<!-- This script installs service_worker.js to provide PWA functionality to
|
||||||
|
BIN
web/yuv.wasm
Executable file
BIN
web/yuv.wasm
Executable file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user