add snackbar method for errors

test (ping) server before saving source
display error message when saving source
This commit is contained in:
austinried
2023-05-14 18:01:18 +09:00
parent 889be2ff2c
commit 67f0c926c4
4 changed files with 24 additions and 0 deletions

View File

@@ -98,6 +98,8 @@ class SubsonicClient {
return subsonicResponse;
}
Future<void> test() => get('ping');
Future<bool> testFeature(SubsonicFeature feature) async {
switch (feature) {
case SubsonicFeature.emptyQuerySearch: