From b1e1dda003acdba0d925b978ff00bdc647d2f44b Mon Sep 17 00:00:00 2001 From: Broque Thomas Date: Sun, 10 Aug 2025 11:46:59 -0700 Subject: [PATCH] full refresh confirmation dialog box --- ui/pages/dashboard.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/ui/pages/dashboard.py b/ui/pages/dashboard.py index 322ec0f8..813abe65 100644 --- a/ui/pages/dashboard.py +++ b/ui/pages/dashboard.py @@ -2814,6 +2814,23 @@ class DashboardPage(QWidget): # Get update type from dropdown full_refresh = self.database_widget.is_full_refresh() + # Show confirmation dialog for full refresh + if full_refresh: + reply = QMessageBox.question( + self, + "Confirm Full Database Refresh", + "⚠️ You've selected FULL REFRESH mode.\n\n" + "This will completely rebuild your database and may take several minutes.\n" + "All existing data will be cleared and rebuilt from your Plex library.\n\n" + "Are you sure you want to continue?", + QMessageBox.StandardButton.Yes | QMessageBox.StandardButton.No, + QMessageBox.StandardButton.No # Default to No for safety + ) + + if reply != QMessageBox.StandardButton.Yes: + logger.debug("Full refresh cancelled by user") + return # Cancel the operation + # Start the database update worker self.database_worker = DatabaseUpdateWorker( self.data_provider.service_clients['plex_client'],