mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-05-14 14:02:48 +00:00
Disabled update checker on beta
This commit is contained in:
parent
3a2b2533b0
commit
38b6f428f2
2 changed files with 14 additions and 10 deletions
|
@ -77,6 +77,8 @@ class _BaseState extends State<Base> with WidgetsBindingObserver {
|
||||||
super.initState();
|
super.initState();
|
||||||
|
|
||||||
WidgetsBinding.instance.addPostFrameCallback((_) async {
|
WidgetsBinding.instance.addPostFrameCallback((_) async {
|
||||||
|
final version = Provider.of<AppConfigProvider>(context, listen: false).getAppInfo!.version;
|
||||||
|
if (!version.contains('beta')) {
|
||||||
final result = await checkInstallationSource();
|
final result = await checkInstallationSource();
|
||||||
|
|
||||||
if (result != null && widget.appConfigProvider.doNotRememberVersion != result.tagName) {
|
if (result != null && widget.appConfigProvider.doNotRememberVersion != result.tagName) {
|
||||||
|
@ -88,6 +90,7 @@ class _BaseState extends State<Base> with WidgetsBindingObserver {
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -210,7 +210,8 @@ class _GeneralSettingsState extends State<GeneralSettings> {
|
||||||
appConfigProvider.installationSource == Source.IS_INSTALLED_FROM_LOCAL_SOURCE ||
|
appConfigProvider.installationSource == Source.IS_INSTALLED_FROM_LOCAL_SOURCE ||
|
||||||
appConfigProvider.installationSource == Source.IS_INSTALLED_FROM_PLAY_PACKAGE_INSTALLER ||
|
appConfigProvider.installationSource == Source.IS_INSTALLED_FROM_PLAY_PACKAGE_INSTALLER ||
|
||||||
appConfigProvider.installationSource == Source.UNKNOWN
|
appConfigProvider.installationSource == Source.UNKNOWN
|
||||||
))
|
)) &&
|
||||||
|
!appConfigProvider.getAppInfo!.version.contains('beta')
|
||||||
) ...[
|
) ...[
|
||||||
SectionLabel(label: AppLocalizations.of(context)!.application),
|
SectionLabel(label: AppLocalizations.of(context)!.application),
|
||||||
CustomListTile(
|
CustomListTile(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue