From dfc23a6e7b9a68d5403e574d983453ba648ffa43 Mon Sep 17 00:00:00 2001 From: makame Date: Thu, 23 Apr 2020 23:39:55 +0200 Subject: [PATCH] add remount drive --- src/app/Settings/Settings.tsx | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/src/app/Settings/Settings.tsx b/src/app/Settings/Settings.tsx index 702510d..4e37bcf 100755 --- a/src/app/Settings/Settings.tsx +++ b/src/app/Settings/Settings.tsx @@ -49,7 +49,7 @@ const SettingsForm = observer(({ state }: { state: SettingsState }) => { ) : (
- + { - + { /> + + + + + + + +
)} @@ -105,9 +120,6 @@ export const Settings = observer(() => { state.isLoading = false; }, save: async () => { - if (!state.isDirty) { - return; - } state.isLoading = true; await ipc.handlers.SAVE_DRIVE_CONFIG(toJS(state.config)); state.config = await ipc.handlers.GET_DRIVE_CONFIG();