mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-05-04 20:30:35 +00:00
Improved server version check
This commit is contained in:
parent
c2af933eb5
commit
34bff2f506
29 changed files with 77 additions and 57 deletions
|
@ -237,7 +237,8 @@ class StatusProvider with ChangeNotifier {
|
|||
}
|
||||
|
||||
Future<bool> getServerStatus({
|
||||
bool? withLoadingIndicator
|
||||
bool? withLoadingIndicator,
|
||||
bool? overrideCheckServerVersion
|
||||
}) async {
|
||||
if (withLoadingIndicator == true) {
|
||||
_loadStatus = LoadStatus.loading;
|
||||
|
@ -258,7 +259,7 @@ class StatusProvider with ChangeNotifier {
|
|||
referenceVersion: MinimumServerVersion.stable,
|
||||
referenceVersionBeta: MinimumServerVersion.beta
|
||||
);
|
||||
if (validVersion == false) {
|
||||
if (validVersion == false && overrideCheckServerVersion != true) {
|
||||
showDialog(
|
||||
context: globalNavigatorKey.currentContext!,
|
||||
builder: (ctx) => UnsupportedVersionModal(
|
||||
|
@ -269,7 +270,6 @@ class StatusProvider with ChangeNotifier {
|
|||
)
|
||||
);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue