Add online map filtering controls
This commit is contained in:
1 parent
bfaa00bb38
commit
b82d5d6aab
27 files changed
+416
-29
No files matched your search
@@ -450,6 +450,13 @@ void main() {
|
||||
expect(AppSettings.fromJson(saved).loadLinkImages, isFalse);
|
||||
});
|
||||
|
||||
test('online map links default on and round-trip through JSON', () {
|
||||
expect(AppSettings().mapShowOnlineLinks, isTrue);
|
||||
expect(AppSettings.fromJson({}).mapShowOnlineLinks, isTrue);
|
||||
final saved = AppSettings(mapShowOnlineLinks: false).toJson();
|
||||
expect(AppSettings.fromJson(saved).mapShowOnlineLinks, isFalse);
|
||||
});
|
||||
|
||||
test('show link images by default is off and round-trips', () {
|
||||
expect(AppSettings().showLinkImagesByDefault, isFalse);
|
||||
expect(AppSettings.fromJson({}).showLinkImagesByDefault, isFalse);
|
||||
|
||||
Reference in new issue
Block a user