Shortcut creator now checks if the IconCache directory is created

This commit is contained in:
s_falahati
2017-08-10 18:41:38 +04:30
parent a2688af245
commit d38bc01125

View File

@ -182,7 +182,17 @@ namespace HeliosDisplayManagement.UIForms
$"-a {HeliosStartupAction.SwitchProfile}",
$"-p \"{dv_profile.Profile.Name}\""
};
if (!Directory.Exists(IconCache))
{
try
{
Directory.CreateDirectory(IconCache);
}
catch
{
// ignored
}
}
if (cb_temp.Checked)
{
if (rb_standalone.Checked)