fix: auto reload after restoring
This commit is contained in:
@@ -6,7 +6,7 @@ class PrivateKeyProvider extends ChangeNotifier {
|
||||
List<PrivateKeyInfo> get pkis => _pkis;
|
||||
late List<PrivateKeyInfo> _pkis;
|
||||
|
||||
void loadData() {
|
||||
void load() {
|
||||
_pkis = Stores.key.fetch();
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ class ServerProvider extends ChangeNotifier {
|
||||
|
||||
Timer? _timer;
|
||||
|
||||
Future<void> loadLocalData() async {
|
||||
Future<void> load() async {
|
||||
// Issue #147
|
||||
// Clear all servers because of restarting app will cause duplicate servers
|
||||
_servers.clear();
|
||||
|
||||
@@ -13,7 +13,7 @@ class SnippetProvider extends ChangeNotifier {
|
||||
final _tags = <String>[];
|
||||
List<String> get tags => _tags;
|
||||
|
||||
void loadData() {
|
||||
void load() {
|
||||
_snippets = Stores.snippet.fetch();
|
||||
final order = Stores.setting.snippetOrder.fetch();
|
||||
if (order.isNotEmpty) {
|
||||
|
||||
Reference in New Issue
Block a user