File tree Expand file tree Collapse file tree 3 files changed +12
-3
lines changed
Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " wh3mm" ,
33 "productName" : " wh3mm" ,
4- "version" : " 1.26.3 " ,
4+ "version" : " 1.26.4 " ,
55 "description" : " WH3 Mod Manager" ,
66 "main" : " .webpack/main" ,
77 "scripts" : {
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ export default function ModRow() {
2424 const isAuthorEnabled = useAppSelector ( ( state ) => state . app . isAuthorEnabled ) ;
2525 const areThumbnailsEnabled = useAppSelector ( ( state ) => state . app . areThumbnailsEnabled ) ;
2626
27- const [ sortingType , setSortingType ] = useState < SortingType > ( SortingType . Ordered ) ;
27+ const [ sortingType , setSortingType ] = useState < SortingType > ( SortingType . IsEnabled ) ;
2828 const [ isDropdownOpen , setIsDropdownOpen ] = useState < boolean > ( false ) ;
2929 const [ contextMenuMod , setContextMenuMod ] = useState < Mod > ( ) ;
3030
Original file line number Diff line number Diff line change @@ -336,7 +336,16 @@ const getAllMods = async (mainWindow: BrowserWindow) => {
336336 } ) ;
337337 }
338338 if ( ! mergedWatcher || isDev ) {
339- await fsExtra . ensureDir ( nodePath . join ( appData . gamePath , "/merged/" ) ) ;
339+ const mergedDirPath = nodePath . join ( appData . gamePath , "/merged/" ) ;
340+ exec ( `mkdir "${ mergedDirPath } "` ) ;
341+
342+ while ( ! fsExtra . existsSync ( mergedDirPath ) ) {
343+ await new Promise ( ( resolve ) => {
344+ setTimeout ( resolve , 100 ) ;
345+ } ) ;
346+ }
347+
348+ // await fsExtra.ensureDir(nodePath.join(appData.gamePath, "/merged/"));
340349 const gamePath = appData . gamePath . replaceAll ( "\\" , "/" ) . replaceAll ( "//" , "/" ) ;
341350 mergedWatcher = chokidar
342351 . watch ( [ `${ gamePath } /merged/*.pack` ] , {
You can’t perform that action at this time.
0 commit comments