fix: fixing games with colon ludusavi

This commit is contained in:
Chubby Granny Chaser 2024-10-21 20:10:18 +01:00
parent e86daacad4
commit 955725b646
No known key found for this signature in database
3 changed files with 8 additions and 4 deletions

View File

@ -35,7 +35,7 @@ export const backupGame = ({
preview?: boolean; preview?: boolean;
winePrefix?: string; winePrefix?: string;
}) => { }) => {
const args = ["backup", title, "--api", "--force"]; const args = ["backup", `"${title}"`, "--api", "--force"];
if (preview) args.push("--preview"); if (preview) args.push("--preview");
if (backupPath) args.push("--path", backupPath); if (backupPath) args.push("--path", backupPath);

View File

@ -40,6 +40,7 @@ export function CloudSyncModal({ visible, onClose }: CloudSyncModalProps) {
downloadGameArtifact, downloadGameArtifact,
deleteGameArtifact, deleteGameArtifact,
setShowCloudSyncFilesModal, setShowCloudSyncFilesModal,
getGameBackupPreview,
} = useContext(cloudSyncContext); } = useContext(cloudSyncContext);
const { objectId, shop, gameTitle, lastDownloadedOption } = const { objectId, shop, gameTitle, lastDownloadedOption } =
@ -81,6 +82,10 @@ export function CloudSyncModal({ visible, onClose }: CloudSyncModalProps) {
downloadGameArtifact(artifactId); downloadGameArtifact(artifactId);
}; };
useEffect(() => {
getGameBackupPreview();
}, [getGameBackupPreview]);
const backupStateLabel = useMemo(() => { const backupStateLabel = useMemo(() => {
if (uploadingBackup) { if (uploadingBackup) {
return ( return (

View File

@ -36,7 +36,7 @@ export function GameDetailsContent() {
const { userDetails } = useUserDetails(); const { userDetails } = useUserDetails();
const { setShowCloudSyncModal, getGameBackupPreview, getGameArtifacts } = const { setShowCloudSyncModal, getGameArtifacts } =
useContext(cloudSyncContext); useContext(cloudSyncContext);
const aboutTheGame = useMemo(() => { const aboutTheGame = useMemo(() => {
@ -107,9 +107,8 @@ export function GameDetailsContent() {
}; };
useEffect(() => { useEffect(() => {
getGameBackupPreview();
getGameArtifacts(); getGameArtifacts();
}, [getGameBackupPreview, getGameArtifacts]); }, [getGameArtifacts]);
return ( return (
<div className={styles.wrapper({ blurredContent: hasNSFWContentBlocked })}> <div className={styles.wrapper({ blurredContent: hasNSFWContentBlocked })}>