修复停止作业之后的弹窗消失
This commit is contained in:
@@ -1547,6 +1547,8 @@ class _MapPageEnterpriseState extends State<MapPageEnterprise> {
|
||||
setState(() {
|
||||
isStartWork = false; // 🔥 关键:停止作业标志
|
||||
_workStatus = WorkStatus.idle;
|
||||
_showHeadingWarn = false;
|
||||
_showControlModeWarn = false;
|
||||
});
|
||||
context.read<DevicesCubit>().updateAppState(AppState.none);
|
||||
await context.read<DevicesCubit>().stopRoutePlanning();
|
||||
@@ -1645,6 +1647,8 @@ class _MapPageEnterpriseState extends State<MapPageEnterprise> {
|
||||
gcjPathPoints = [];
|
||||
gcjOuterPoints = [];
|
||||
_workStatus = WorkStatus.idle;
|
||||
_showHeadingWarn = false;
|
||||
_showControlModeWarn = false;
|
||||
});
|
||||
},
|
||||
icon: const Icon(Icons.close, color: Colors.grey, size: 20),
|
||||
|
||||
Reference in New Issue
Block a user