Add online map filtering controls

This commit is contained in:
ericz committed 2026-11-01 14:13:27 +01:00
1 parent bfaa00bb38
commit b82d5d6aab
27 files changed
+416 -29

No files matched your search

+7
View File
@@ -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);