Skip to content

Commit

Permalink
fixed webm hiding
Browse files Browse the repository at this point in the history
  • Loading branch information
clragon committed Apr 10, 2020
1 parent 4c547cc commit 75ecd19
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/appinfo.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const String appName = 'e1547';
const String appVersion = '1.1.1';
const String appVersion = '1.1.2';
const String defaultEndpoint = 'e926.net';
const String about = 'An app for e621 and e926.';
const String developer = 'binaryfloof';
Expand Down
2 changes: 1 addition & 1 deletion lib/persistence.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class Persistence {
apiKey = _makeNotifier((p) => p.getString('apiKey'));
apiKey.addListener(_saveString('apiKey', apiKey));

showWebm = _makeNotifier((p) => p.getBool('showWebm'));
showWebm = _makeNotifier((p) => p.getBool('showWebm') ?? true);
showWebm.addListener(_saveBool('showWebm', showWebm));
}

Expand Down
2 changes: 1 addition & 1 deletion lib/settings_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class _SettingsPageState extends State<SettingsPage> {
_showUnsafe = _host == 'e621.net' ? true : false;
}));
db.username.value.then((a) async => setState(() => _username = a));
db.showWebm.value.then((a) async => setState(() => _showWebm = a ?? true));
db.showWebm.value.then((a) async => setState(() => _showWebm = a));
}

Function() _onTapSignOut(BuildContext context) {
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: e1547
description: A mobile app for e621+e926.

version: 1.1.1+5
version: 1.1.2+6

environment:
sdk: ">=2.2.2 <3.0.0"
Expand Down

0 comments on commit 75ecd19

Please sign in to comment.