Skip to content

Commit

Permalink
slight FileManager improvement:
Browse files Browse the repository at this point in the history
instead of intializing directories with CurrentDirectory,
call it on app startup
  • Loading branch information
maul.esel committed Apr 21, 2012
1 parent 88cd476 commit 409f961
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ChameleonCoder.Core/Files/FileManager.cs
Expand Up @@ -224,7 +224,7 @@ public string MakeAbsolutePath(string relativePath)
/// a list of referenced directories
/// </summary>
[ComVisible(false)]
private readonly List<string> dirList = new List<string>(new string[1] { Environment.CurrentDirectory }); // todo: remove currentDir and call OpenDirectory() from Main() instead
private readonly List<string> dirList = new List<string>();

/// <summary>
/// contains a list of all loaded files in form of their file paths
Expand Down
2 changes: 2 additions & 0 deletions ChameleonCoder/App.xaml.cs
Expand Up @@ -81,6 +81,8 @@ void InitHandler(object sender, StartupEventArgs e)

#endregion

obj.FileMan.OpenDirectory(Environment.CurrentDirectory);

var load = System.Threading.Tasks.Task.Factory.StartNew(() =>
{
obj.PluginMan.Load(); // load all plugins in the /Component/ folder
Expand Down

0 comments on commit 409f961

Please sign in to comment.