From a75b98ed116abd1bb9de6f1c541a61aca44e9a6e Mon Sep 17 00:00:00 2001 From: Humdinger Date: Wed, 7 Jan 2026 13:59:19 +0100 Subject: [PATCH] DriveSetup: Use clearer file dialog titles + button labels It's a good idea to be more descriptive in those file dialogs' window title and button labels. That way you can be sure the file dialog does what you intended. Esp. using "Write" for the button that starts writing an image onto a volume. Change-Id: I0ddb71aae1962d107b8d848d772541366c6bba36 Reviewed-on: https://review.haiku-os.org/c/haiku/+/10215 Reviewed-by: Adrien Destugues Tested-by: Commit checker robot --- src/apps/drivesetup/MainWindow.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/apps/drivesetup/MainWindow.cpp b/src/apps/drivesetup/MainWindow.cpp index 691a3c88c2..abbf1c25dc 100644 --- a/src/apps/drivesetup/MainWindow.cpp +++ b/src/apps/drivesetup/MainWindow.cpp @@ -529,6 +529,9 @@ MainWindow::MessageReceived(BMessage* message) fRegisterFilePanel = new(std::nothrow) BFilePanel(B_OPEN_PANEL, new BMessenger(this), NULL, B_FILE_NODE, false, new BMessage(MSG_REGISTER), NULL, true); + fRegisterFilePanel->Window()->SetTitle(B_TRANSLATE( + "DriveSetup: Register disk image")); + fRegisterFilePanel->SetButtonLabel(B_DEFAULT_BUTTON, B_TRANSLATE("Register")); } if (fRegisterFilePanel != NULL) @@ -566,6 +569,9 @@ MainWindow::MessageReceived(BMessage* message) fWriteImageFilePanel = new(std::nothrow) BFilePanel( B_OPEN_PANEL, new BMessenger(this), NULL, B_FILE_NODE, false, new BMessage(MSG_WRITE), NULL, true); + fWriteImageFilePanel->Window()->SetTitle(B_TRANSLATE( + "DriveSetup: Select disk image")); + fWriteImageFilePanel->SetButtonLabel(B_DEFAULT_BUTTON, B_TRANSLATE("Write")); } if (fWriteImageFilePanel != NULL) fWriteImageFilePanel->Show(); @@ -581,6 +587,7 @@ MainWindow::MessageReceived(BMessage* message) fReadImageFilePanel = new(std::nothrow) BFilePanel(B_SAVE_PANEL, new BMessenger(this), NULL, B_FILE_NODE, false, NULL, NULL, true); + fReadImageFilePanel->Window()->SetTitle(B_TRANSLATE("DriveSetup: Save disk image")); } if (fReadImageFilePanel != NULL) {