Skip to content

Commit 1b68277

Browse files
committed
fixed bug when program tries to overwrite text in dialog when dialog is not created
1 parent 9e7ee4d commit 1b68277

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

AMP4SCS/AMP4SCS.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<UseWindowsForms>true</UseWindowsForms>
77
<AssemblyName>AdvancedModPackerforSCSGames</AssemblyName>
88
<RootNamespace>AdvancedETS2Packer</RootNamespace>
9+
<Version>1.0.2</Version>
910
</PropertyGroup>
1011

1112
<ItemGroup>

AMP4SCS/PackingDialog.cs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,12 @@ public PackingDialog()
3434
/// <param name="status">Status string, that will be displayed on form.</param>
3535
public void UpdateStatus(string status)
3636
{
37-
Invoke((MethodInvoker)delegate
38-
{
39-
lblStatus.Text = LocRM.GetString(status);
40-
});
37+
if (this.IsHandleCreated) {
38+
Invoke((MethodInvoker)delegate
39+
{
40+
lblStatus.Text = LocRM.GetString(status);
41+
});
42+
}
4143
}
4244
}
4345
}

0 commit comments

Comments
 (0)