Skip to content

Commit cc3bd9c

Browse files
committed
Ensure EarlyUpdateCheck is still compatible with older versions of KeePass
1 parent 18047a2 commit cc3bd9c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/Options.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,10 @@ public Options()
5656
cbKeePassInstallType.Items.Add(KeePass_Update.KeePassInstallType.MSI);
5757
cbKeePassInstallType.Items.Add(KeePass_Update.KeePassInstallType.Portable);
5858
lKeePassFolder.Text = KPRes.Folder + ":";
59-
lKeePassInstallType.Text = KPRes.Type + ":";
59+
60+
var t = typeof(KPRes).GetProperty("Type");
61+
if (t != null) lKeePassInstallType.Text = t.GetValue(null, null) + ":";
62+
else lKeePassInstallType.Text = "Type:";
6063
}
6164

6265
private void bUpdateTranslations_Click(object sender, EventArgs e)

0 commit comments

Comments
 (0)