mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 07:47:24 +00:00
fix #98
This commit is contained in:
@@ -122,6 +122,7 @@ class _Settings with ChangeNotifier {
|
||||
'enableClockAndBatteryInfoInReader': true,
|
||||
'ignoreCertificateErrors': false,
|
||||
'authorizationRequired': false,
|
||||
'onClickFavorite': 'viewDetail', // viewDetail, read
|
||||
};
|
||||
|
||||
operator [](String key) {
|
||||
|
@@ -28,4 +28,12 @@ class ComicType {
|
||||
}
|
||||
|
||||
static const local = ComicType(0);
|
||||
|
||||
factory ComicType.fromKey(String key) {
|
||||
if(key == "local") {
|
||||
return local;
|
||||
} else {
|
||||
return ComicType(key.hashCode);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user