feat: add equality operators, make history screen paginated, random performance updates
This commit is contained in:
@@ -4,6 +4,7 @@ import 'package:ota_update/ota_update.dart';
|
||||
|
||||
import '../models/settings.dart';
|
||||
import '../services/settings_service.dart';
|
||||
import '../utils/app_config.dart';
|
||||
|
||||
class SettingsViewModel extends ChangeNotifier {
|
||||
final SettingsService settingsService;
|
||||
@@ -15,9 +16,7 @@ class SettingsViewModel extends ChangeNotifier {
|
||||
bool _hasLoaded = false;
|
||||
String? _errorMessage;
|
||||
|
||||
final AppUpdateUtil _updater = AppUpdateUtil(
|
||||
serverUrl: "https://updater.brammie15.dev",
|
||||
);
|
||||
final AppUpdateUtil _updater = AppUpdateUtil(serverUrl: kUpdateServerUrl);
|
||||
|
||||
bool _checkingForUpdates = false;
|
||||
|
||||
@@ -74,7 +73,7 @@ class SettingsViewModel extends ChangeNotifier {
|
||||
}) async {
|
||||
final url = update.download.startsWith("http")
|
||||
? update.download
|
||||
: "https://updater.brammie15.dev${update.download}";
|
||||
: "$kUpdateServerUrl${update.download}";
|
||||
|
||||
debugPrint("Download Url: ${url}");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user