mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2026-02-16 14:29:35 +00:00
hive切换hive_ce
This commit is contained in:
parent
3362a254ff
commit
6efa41e035
30 changed files with 1403 additions and 2566 deletions
|
|
@ -29,7 +29,7 @@ class ServerAlreadyExistsException implements Exception {
|
|||
class AudiobookShelfServer extends _$AudiobookShelfServer {
|
||||
@override
|
||||
Set<model.AudiobookShelfServer> build() {
|
||||
ref.listenSelf((_, __) {
|
||||
listenSelf((_, __) {
|
||||
writeStateToBox();
|
||||
});
|
||||
// get the app settings
|
||||
|
|
@ -48,7 +48,7 @@ class AudiobookShelfServer extends _$AudiobookShelfServer {
|
|||
|
||||
Set<model.AudiobookShelfServer> readFromBoxOrCreate() {
|
||||
if (_box.isNotEmpty) {
|
||||
final foundServers = _box.getRange(0, _box.length);
|
||||
final foundServers = _box.values.toList();
|
||||
_logger.info('found servers in box: ${foundServers.obfuscate()}');
|
||||
return foundServers.nonNulls.toSet();
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue