修复自动开启传感器蓝牙日志
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user