Fix bug in cancelling timer + bump version (#1370)
This commit is contained in:
commit
4312024523
2 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue