From 5074f6dc0eedad16576bff38c8989ddfe9f2c9d6 Mon Sep 17 00:00:00 2001 From: backuppc Date: Wed, 21 Jan 2026 11:17:19 +0900 Subject: [PATCH] =?UTF-8?q?error=20=EC=A4=91=EB=B3=B5=EC=A0=95=EC=9D=98=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.tsx | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/App.tsx b/App.tsx index b9a198b..457a63d 100644 --- a/App.tsx +++ b/App.tsx @@ -226,7 +226,11 @@ const App: React.FC = () => { case 'error': addLog('error', data.message); + window.alert(data.message); // Show error dialog setConnection(prev => ({ ...prev, connecting: false })); + setRemote(prev => ({ ...prev, isLoading: false })); + setLocal(prev => ({ ...prev, isLoading: false })); + setRefreshKey(prev => prev + 1); // Revert invalid inputs // Check for disconnection messages if ( @@ -280,14 +284,7 @@ const App: React.FC = () => { addLog('success', `[로컬] 이동 완료: ${data.path}`); break; - case 'error': - addLog('error', data.message); - window.alert(data.message); // Show error dialog - setConnection(prev => ({ ...prev, connecting: false })); - setRemote(prev => ({ ...prev, isLoading: false })); - setLocal(prev => ({ ...prev, isLoading: false })); - setRefreshKey(prev => prev + 1); // Revert invalid inputs - break; + case 'success': addLog('success', data.message);