- [Core] fix AssetBrowser order

This commit is contained in:
Razmoth
2023-11-25 19:29:07 +04:00
parent 148969c457
commit 445460db62
2 changed files with 7 additions and 5 deletions

View File

@@ -113,8 +113,8 @@ namespace AssetStudio.GUI
{ {
0 => assetEntry.Name, 0 => assetEntry.Name,
1 => assetEntry.Container, 1 => assetEntry.Container,
2 => assetEntry.PathID, 2 => assetEntry.Source,
3 => assetEntry.Source, 3 => assetEntry.PathID,
4 => assetEntry.Type, 4 => assetEntry.Type,
_ => "" _ => ""
}; };
@@ -152,8 +152,8 @@ namespace AssetStudio.GUI
{ {
0 => x => x.Name, 0 => x => x.Name,
1 => x => x.Container, 1 => x => x.Container,
2 => x => x.PathID, 2 => x => x.Source,
3 => x => x.Source, 3 => x => x.PathID,
4 => x => x.Type, 4 => x => x.Type,
_ => x => "" _ => x => ""
}; };

View File

@@ -1425,7 +1425,9 @@ namespace AssetStudio.GUI
{ {
if (InvokeRequired) if (InvokeRequired)
{ {
BeginInvoke(new Action(() => { progressBar1.Value = value; }));
var result = BeginInvoke(new Action(() => { progressBar1.Value = value; }));
result.AsyncWaitHandle.WaitOne();
} }
else else
{ {