mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-03 00:33:49 +03:00
fix: adding wine prefix to preview
This commit is contained in:
parent
6bbd916e99
commit
7d3d5d42d1
@ -169,7 +169,6 @@ export function CloudSyncContextProvider({
|
||||
setShowCloudSyncModal(false);
|
||||
setRestoringBackup(false);
|
||||
setUploadingBackup(false);
|
||||
setLoadingPreview(false);
|
||||
}, [objectId, shop]);
|
||||
|
||||
const backupState = useMemo(() => {
|
||||
|
@ -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 (
|
||||
|
Loading…
Reference in New Issue
Block a user