mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2026-02-09 09:44:22 +01:00
new: delete all servers btn
This commit is contained in:
@@ -22,6 +22,10 @@ class ServerStore extends PersistentStore {
|
||||
box.delete(id);
|
||||
}
|
||||
|
||||
void deleteAll() {
|
||||
box.clear();
|
||||
}
|
||||
|
||||
void update(ServerPrivateInfo old, ServerPrivateInfo newInfo) {
|
||||
if (!have(old)) {
|
||||
throw Exception('Old spi: $old not found');
|
||||
|
||||
@@ -95,7 +95,8 @@ class SettingStore extends PersistentStore {
|
||||
|
||||
StoreProperty<NetViewType> get netViewType =>
|
||||
property('netViewType', defaultValue: NetViewType.speed);
|
||||
|
||||
|
||||
// Only valid on iOS
|
||||
StoreProperty<bool> get autoUpdateHomeWidget => property('autoUpdateHomeWidget', defaultValue: isIOS);
|
||||
StoreProperty<bool> get autoUpdateHomeWidget =>
|
||||
property('autoUpdateHomeWidget', defaultValue: isIOS);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user