Skip to content

Commit

Permalink
Files view- support changing folder
Browse files Browse the repository at this point in the history
  • Loading branch information
tzachshabtay committed Feb 15, 2019
1 parent b1099e2 commit 272251d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Source/Editor/AGS.Editor/Components/FileSelector/FilesView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ private async void refreshInvWindow()
var invWindow = _invWindow;
if (folder == null || invWindow == null) return;
var files = await Task.Run(() => _files.GetFiles(folder));
foreach (var item in invWindow.Inventory.Items)
{
item.Graphics?.DestroyWithChildren();
}
invWindow.Inventory.Items.Clear();
foreach (var file in files)
{
IObject graphics = await getGraphics(file);
Expand Down

0 comments on commit 272251d

Please sign in to comment.