"fix:Enforce-Run-Mode-in-fAuto-VisibleChanged"

This commit is contained in:
2025-12-18 00:43:22 +09:00
parent 4bdc36040d
commit 2a44ba28a8
14 changed files with 11 additions and 58 deletions

View File

@@ -215,7 +215,15 @@ namespace Project.ViewForm
private void fAuto_VisibleChanged(object sender, EventArgs e)
{
this.timer1.Enabled = this.Visible;
if (timer1.Enabled) timer1.Start();
if (timer1.Enabled)
{
timer1.Start();
// 화면이 보일 때 Run 모드로 강제 설정
if (PUB._mapCanvas.Mode != AGVNavigationCore.Controls.UnifiedAGVCanvas.CanvasMode.Run)
{
PUB._mapCanvas.Mode = AGVNavigationCore.Controls.UnifiedAGVCanvas.CanvasMode.Run;
}
}
else timer1.Stop();
}