fix abModel multi request and state didn't refresh bug

This commit is contained in:
csf
2022-10-09 19:41:50 +09:00
parent 672d5f31d0
commit 8d23c11312
11 changed files with 111 additions and 230 deletions

View File

@@ -263,12 +263,13 @@ void showServerSettingsWithValue(String id, String relay, String key,
if (id != id0) {
bind.mainSetOption(key: "custom-rendezvous-server", value: id);
}
if (relay != relay0)
if (relay != relay0) {
bind.mainSetOption(key: "relay-server", value: relay);
}
if (key != key0) bind.mainSetOption(key: "key", value: key);
if (api != api0)
if (api != api0) {
bind.mainSetOption(key: "api-server", value: api);
gFFI.ffiModel.updateUser();
}
close();
}
setState(() {