Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dragoonDorise committed Sep 23, 2023
1 parent 2019e5e commit 4f44894
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/renderer/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export default function App() {
bezels: true,
powerTools: false,
GyroDSU: false,
cloudSync: '',
cloudSync: undefined,
cloudSyncType: 'Sync',
cloudSyncStatus: false,
sudoPass: 'Decky!',
Expand Down
20 changes: 11 additions & 9 deletions src/renderer/pages/CloudSyncConfigPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function CloudSyncPageConfig() {
const ipcChannel = window.electron.ipcRenderer;

const cloudSyncSet = (item) => {
let modalData = undefined;
let modalData;
if (item === 'Emudeck-GDrive') {
modalData = {
active: true,
Expand Down Expand Up @@ -75,7 +75,7 @@ function CloudSyncPageConfig() {
active: true,
header: <span className="h4">Uploading</span>,
body: <p>Please stand by...</p>,
footer: <ProgressBar css="progress--success" infinite={true} max="100" />,
footer: <ProgressBar css="progress--success" infinite max="100" />,
};
setStatePage({ ...statePage, modal: modalData });

Expand All @@ -102,7 +102,7 @@ function CloudSyncPageConfig() {
active: true,
header: <span className="h4">Downloading</span>,
body: <p>Please stand by...</p>,
footer: <ProgressBar css="progress--success" infinite={true} max="100" />,
footer: <ProgressBar css="progress--success" infinite max="100" />,
css: 'emumodal--xs',
};
setStatePage({ ...statePage, modal: modalData });
Expand Down Expand Up @@ -152,7 +152,7 @@ function CloudSyncPageConfig() {
});
let cloudFunction;
if (cloudSyncType === 'Sync') {
cloudFunction = 'cloud_sync_install_and_config';
cloudFunction = 'cloud_sync_install_and_config ';
} else {
cloudFunction = 'cloud_backup_install_and_config';
}
Expand Down Expand Up @@ -297,10 +297,12 @@ function CloudSyncPageConfig() {
};

useEffect(() => {
ipcChannel.sendMessage('emudeck', [
`save-setting|||setSetting rclone_provider ${cloudSync}`,
]);
localStorage.setItem('settings_emudeck', json);
if (cloudSync !== '' || cloudSync !== undefined) {
ipcChannel.sendMessage('emudeck', [
`save-setting|||setSetting rclone_provider ${cloudSync}`,
]);
localStorage.setItem('settings_emudeck', json);
}
}, [cloudSync]);

const nextButtonStatus = () => {
Expand All @@ -310,7 +312,7 @@ function CloudSyncPageConfig() {
return 'copy-games';
};

//GamePad
// GamePad
const domElementsRef = useRef(null);
const domElementsCur = domElementsRef.current;
let domElements;
Expand Down

0 comments on commit 4f44894

Please sign in to comment.