mirror of
https://github.com/claunia/osrepodbmgr.git
synced 2025-12-16 19:14:25 +00:00
If program files folder does not exist do not try to create an
Uri from null.
This commit is contained in:
6
osrepodbmgr.Eto/ChangeLog
Normal file
6
osrepodbmgr.Eto/ChangeLog
Normal file
@@ -0,0 +1,6 @@
|
||||
2017-05-18 Natalia Portillo <claunia@claunia.com>
|
||||
|
||||
* dlgSettings.xeto.cs:
|
||||
If program files folder does not exist do not try to create
|
||||
an Uri from null.
|
||||
|
||||
@@ -91,7 +91,8 @@ namespace osrepodbmgr.Eto
|
||||
OpenFileDialog dlgFile = new OpenFileDialog();
|
||||
dlgFile.Title = "Choose UnArchiver executable";
|
||||
dlgFile.MultiSelect = false;
|
||||
dlgFile.Directory = new Uri(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles));
|
||||
if(!string.IsNullOrWhiteSpace(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles)))
|
||||
dlgFile.Directory = new Uri(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles));
|
||||
|
||||
if(dlgFile.ShowDialog(this) == DialogResult.Ok)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user