Skip to content

Commit

Permalink
fix ab cache not work, set current ab name after load cache (rustdesk…
Browse files Browse the repository at this point in the history
…#7542)

Signed-off-by: 21pages <[email protected]>
  • Loading branch information
21pages authored Mar 28, 2024
1 parent 6186b41 commit 0c32a88
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions flutter/lib/models/ab_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,10 @@ class AbModel {
final data = jsonDecode(cache);
if (data == null || data['access_token'] != access_token) return;
_deserializeCache(data);
final name = bind.getLocalFlutterOption(k: 'current-ab-name');
if (addressbooks.containsKey(name)) {
_currentName.value = name;
}
} catch (e) {
debugPrint("load ab cache: $e");
}
Expand Down

0 comments on commit 0c32a88

Please sign in to comment.