mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-02 00:58:19 +08:00
mod: remove hiddenSetting
useless
This commit is contained in:
@@ -81,7 +81,7 @@ class _AboutPageState extends State<AboutPage> {
|
|||||||
),
|
),
|
||||||
Obx(
|
Obx(
|
||||||
() => ListTile(
|
() => ListTile(
|
||||||
onTap: () => _aboutController.tapOnVersion(),
|
// onTap: () => _aboutController.tapOnVersion(),
|
||||||
title: const Text('当前版本'),
|
title: const Text('当前版本'),
|
||||||
leading: const Icon(Icons.commit_outlined),
|
leading: const Icon(Icons.commit_outlined),
|
||||||
trailing: Text(_aboutController.currentVersion.value,
|
trailing: Text(_aboutController.currentVersion.value,
|
||||||
@@ -300,7 +300,7 @@ class AboutController extends GetxController {
|
|||||||
RxBool isUpdate = true.obs;
|
RxBool isUpdate = true.obs;
|
||||||
RxBool isLoading = true.obs;
|
RxBool isLoading = true.obs;
|
||||||
LatestDataModel? data;
|
LatestDataModel? data;
|
||||||
RxInt count = 0.obs;
|
// RxInt count = 0.obs;
|
||||||
RxString cacheSize = ''.obs;
|
RxString cacheSize = ''.obs;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@@ -408,15 +408,15 @@ class AboutController extends GetxController {
|
|||||||
Get.toNamed('/logs');
|
Get.toNamed('/logs');
|
||||||
}
|
}
|
||||||
|
|
||||||
tapOnVersion() {
|
// tapOnVersion() {
|
||||||
if (settingController.hiddenSettingUnlocked.value) {
|
// if (settingController.hiddenSettingUnlocked.value) {
|
||||||
SmartDialog.showToast('您已解锁开发人员选项, 无需再次操作');
|
// SmartDialog.showToast('您已解锁开发人员选项, 无需再次操作');
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
count.value++;
|
// count.value++;
|
||||||
if (count.value == 5) {
|
// if (count.value == 5) {
|
||||||
setting.put(SettingBoxKey.hiddenSettingUnlocked, true);
|
// setting.put(SettingBoxKey.hiddenSettingUnlocked, true);
|
||||||
SmartDialog.showToast('恭喜您发现了开发人员选项!');
|
// SmartDialog.showToast('恭喜您发现了开发人员选项!');
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user