From ea3e102bba459bbb529f8e0e1d608b3decadfb11 Mon Sep 17 00:00:00 2001 From: PhilReact Date: Tue, 17 Dec 2024 21:28:39 +0200 Subject: [PATCH] add warning to logout --- src/App.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/App.tsx b/src/App.tsx index 008e25e..4bd817e 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -974,6 +974,11 @@ function App() { message: "Your settings have changed. If you logout you will lose your changes. Click on the save button in the header to keep your changed settings.", }); + } else { + await showUnsavedChanges({ + message: + "Are you sure you would like to logout?", + }); } window .sendMessage("logout", {})