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);
setRestoringBackup(false);
setUploadingBackup(false);
setLoadingPreview(false);
}, [objectId, shop]);
const backupState = useMemo(() => {

View File

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