fix: adding wine prefix to preview

This commit is contained in:
Chubby Granny Chaser 2024-10-22 14:01:44 +01:00
parent 6bbd916e99
commit 7d3d5d42d1
No known key found for this signature in database
2 changed files with 3 additions and 4 deletions

View File

@ -169,7 +169,6 @@ export function CloudSyncContextProvider({
setShowCloudSyncModal(false); setShowCloudSyncModal(false);
setRestoringBackup(false); setRestoringBackup(false);
setUploadingBackup(false); setUploadingBackup(false);
setLoadingPreview(false);
}, [objectId, shop]); }, [objectId, shop]);
const backupState = useMemo(() => { const backupState = useMemo(() => {

View File

@ -46,7 +46,7 @@ export function CloudSyncFilesModal({
} }
setValue("customBackupPath", backupPreview?.customBackupPath ?? null); setValue("customBackupPath", backupPreview?.customBackupPath ?? null);
}, [visible, backupPreview]); }, [visible, setValue, backupPreview]);
const files = useMemo(() => { const files = useMemo(() => {
if (!backupPreview) { if (!backupPreview) {
@ -75,7 +75,7 @@ export function CloudSyncFilesModal({
showSuccessToast("custom_backup_location_set"); showSuccessToast("custom_backup_location_set");
getGameBackupPreview(); getGameBackupPreview();
} }
}, [objectId, showSuccessToast, getGameBackupPreview]); }, [objectId, setValue, shop, showSuccessToast, getGameBackupPreview]);
const handleFileMappingMethodClick = useCallback( const handleFileMappingMethodClick = useCallback(
(mappingOption: FileMappingMethod) => { (mappingOption: FileMappingMethod) => {
@ -86,7 +86,7 @@ export function CloudSyncFilesModal({
setSelectedFileMappingMethod(mappingOption); setSelectedFileMappingMethod(mappingOption);
}, },
[] [getGameBackupPreview, shop, objectId]
); );
return ( return (