Skip to content

Commit

Permalink
Merge branch 'fix' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
ziteh committed Jul 26, 2022
2 parents 1ef398f + bc79573 commit 377a272
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,12 @@ private void MainForm_FormClosing(object sender, FormClosingEventArgs e)
#if (!DISABLE_FORM_CLOSING)
foreach (var device in Devices)
{
if (device == null ? false : device.Connected)
if (device == null)
{
continue;
}

if (device.Connected)
{
var dr = MessageHandler.Show("手臂或其它裝置似乎還在連線中。\r\n" +
"是否要斷開連線後再關閉視窗?",
Expand Down

0 comments on commit 377a272

Please sign in to comment.