Update assetBrowser.tscript

fix folder navigation in asset browser

fix found by Abbey
This commit is contained in:
marauder2k7 2025-07-11 12:31:27 +01:00
parent dd26257528
commit 99db60e3f3

View file

@ -2140,6 +2140,9 @@ function AssetBrowser::navigateTo(%this, %address, %historyNav)
if(startsWith(%address, "/"))
%address = strreplace(%address, "/", "");
// Safety
%address = strreplace(%address, "//", "/");
//Don't bother navigating if it's to the place we already are
if(%this.dirHandler.currentAddress !$= %address)
{
@ -2853,4 +2856,4 @@ function AssetBrowserWindow::onResize(%this, %posX, %posY, %width, %height)
else
AssetBrowser-->assetList.fillRowFirst = false;
AssetBrowser.rebuildAssetArray();
}
}