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);
|
setShowCloudSyncModal(false);
|
||||||
setRestoringBackup(false);
|
setRestoringBackup(false);
|
||||||
setUploadingBackup(false);
|
setUploadingBackup(false);
|
||||||
setLoadingPreview(false);
|
|
||||||
}, [objectId, shop]);
|
}, [objectId, shop]);
|
||||||
|
|
||||||
const backupState = useMemo(() => {
|
const backupState = useMemo(() => {
|
||||||
|
@ -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 (
|
||||||
|
Loading…
Reference in New Issue
Block a user