mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-10-27 11:43:47 +01:00
Switch to a New Background Task Plugin (#608), Add Link Text Filter for HTML Links (#1182), Add Support for Multiple Intermediate Links to HTML Source (#1204)
- Switch to a New Background Task Plugin (#608) - Add Link Text Filter for HTML Links (#1182) - Add Support for Multiple Intermediate Links to HTML Source
This commit is contained in:
@@ -52,8 +52,8 @@ class SettingsProvider with ChangeNotifier {
|
||||
}
|
||||
|
||||
InstallMethodSettings get installMethod {
|
||||
return InstallMethodSettings
|
||||
.values[prefs?.getInt('installMethod') ?? InstallMethodSettings.normal.index];
|
||||
return InstallMethodSettings.values[
|
||||
prefs?.getInt('installMethod') ?? InstallMethodSettings.normal.index];
|
||||
}
|
||||
|
||||
set installMethod(InstallMethodSettings t) {
|
||||
@@ -345,15 +345,15 @@ class SettingsProvider with ChangeNotifier {
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
DateTime get lastBGCheckTime {
|
||||
int? temp = prefs?.getInt('lastBGCheckTime');
|
||||
DateTime get lastCompletedBGCheckTime {
|
||||
int? temp = prefs?.getInt('lastCompletedBGCheckTime');
|
||||
return temp != null
|
||||
? DateTime.fromMillisecondsSinceEpoch(temp)
|
||||
: DateTime.fromMillisecondsSinceEpoch(0);
|
||||
}
|
||||
|
||||
set lastBGCheckTime(DateTime val) {
|
||||
prefs?.setInt('lastBGCheckTime', val.millisecondsSinceEpoch);
|
||||
set lastCompletedBGCheckTime(DateTime val) {
|
||||
prefs?.setInt('lastCompletedBGCheckTime', val.millisecondsSinceEpoch);
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user