修复自动开启传感器蓝牙日志

This commit is contained in:
wyf
2025-12-08 15:45:40 +08:00
parent 8285599aa9
commit ba145ba26f
4 changed files with 30 additions and 25 deletions

View File

@@ -358,21 +358,19 @@ class _DeviceDataComponentWidgetState extends State<DeviceDataComponentWidget> {
// WIFI 配置 —— 单独判断
if (hasBasePermission || hasWifiPermission) {
if (hasWifiPermission) {
items.add(
_buildMenuItem(
text: "WIFI配置".tr,
onTap: () {
setState(() {
_isPopupOpen = false;
});
_popupEntry?.remove();
_popupEntry = null;
dealWifi(widget.device);
},
),
);
}
items.add(
_buildMenuItem(
text: "WIFI配置".tr,
onTap: () {
setState(() {
_isPopupOpen = false;
});
_popupEntry?.remove();
_popupEntry = null;
dealWifi(widget.device);
},
),
);
// 下面这些 **只受 hasBasePermission 影响**
if (hasBasePermission) {