File tree Expand file tree Collapse file tree 4 files changed +11
-3
lines changed
Expand file tree Collapse file tree 4 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 212212 border-radius : 10px ;
213213 cursor : pointer ;
214214 min-width : 300px ;
215+ width : 300px ;
216+ object-fit : cover ;
215217 margin-right : 10px ;
216218 max-height : 160px ;
217219 border : 1px solid theme .$bg3 ;
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ export const useEverestInstallState =
2020 setEverestInstallState : ( everestInstallState : EverestInstallState ) => set ( { everestInstallState } )
2121 } ) ) ;
2222
23+ let lastGamePath
2324export const useEverestCtx = ( ) => {
2425 const { currentEverestVersion, setCurrentEverestVersion } = useCurrentEverestVersion ( ) ;
2526 const [ gamePath ] = useGamePath ( ) ;
@@ -42,10 +43,14 @@ export const useEverestCtx = () => {
4243 }
4344 }
4445
45- useEffect ( ( ) => {
46- if ( gamePath )
46+ if ( lastGamePath !== gamePath ) {
47+ lastGamePath = gamePath ;
48+
49+ if ( gamePath ) {
4750 ctx . updateEverestVersion ( ) ;
48- } , [ gamePath ] )
51+ }
52+ }
4953
5054 return ctx ;
55+
5156}
Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ export const createModManageContext = () => {
5959 if ( gamePath ) {
6060
6161 callRemote ( "get_everest_version" , gamePath , ( ver : string ) => {
62+ console . log ( "[modManage] Everest version" , ver )
6263 if ( ver && ver . length > 2 ) {
6364 setTimeout ( ( ) => {
6465 const popup = createPopup (
You can’t perform that action at this time.
0 commit comments