From d83f8287903f98fb21e2f51894aa7c7eb8daebd1 Mon Sep 17 00:00:00 2001 From: ashitsalesforce Date: Mon, 28 Oct 2024 22:53:43 -0700 Subject: [PATCH] make sure that menubar is displayed after upgrade dialog is closed make sure that menubar is displayed after upgrade dialog is closed --- src/main/java/com/salesforce/dataloader/ui/LoaderWindow.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/salesforce/dataloader/ui/LoaderWindow.java b/src/main/java/com/salesforce/dataloader/ui/LoaderWindow.java index 434caf38..dd318238 100644 --- a/src/main/java/com/salesforce/dataloader/ui/LoaderWindow.java +++ b/src/main/java/com/salesforce/dataloader/ui/LoaderWindow.java @@ -145,6 +145,7 @@ public void run() { displayUpgradeDialog(Display.getDefault()); } setBlockOnOpen(true); + addMenuBar(); open(); Display currentDisplay = Display.getCurrent(); @@ -272,7 +273,6 @@ public void run() { for (Entry ent : map.entrySet()) { if (result == ent.getKey()) ent.getValue().run(); } - addMenuBar(); } }); } @@ -286,7 +286,6 @@ private void displayUpgradeDialog(final Display display) { public void run() { LoaderUpgradeDialog dlg = new LoaderUpgradeDialog(display.getActiveShell(), controller); dlg.open(); - addMenuBar(); } }); }