Fix bug in cancelling timer + bump version (#1370)

This commit is contained in:
Vishnu Mohandas 2023-09-01 15:18:02 +05:30 committed by GitHub
commit 4312024523
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -7,7 +7,7 @@ typedef FakeProgressCallback = void Function(int count);
class FakePeriodicProgress {
final FakeProgressCallback? callback;
final Duration duration;
late Timer _timer;
Timer? _timer;
bool _shouldRun = true;
int runCount = 0;
@ -24,7 +24,7 @@ class FakePeriodicProgress {
void stop() {
if (_shouldRun) {
_shouldRun = false;
_timer.cancel();
_timer?.cancel();
}
}

View file

@ -12,7 +12,7 @@ description: ente photos application
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 0.7.90+490
version: 0.7.91+491
environment:
sdk: ">=3.0.0 <4.0.0"