⛏️ index : haiku.git

author Humdinger <humdinger@mailbox.org> 2026-01-07 13:59:19.0 +01:00:00
committer waddlesplash <waddlesplash@gmail.com> 2026-01-07 17:49:52.0 +00:00:00
commit
a75b98ed116abd1bb9de6f1c541a61aca44e9a6e [patch]
tree
a125fb488c09a9a4e55d56686c2a70f4cfb70457
parent
b31ff5b650da52911640cd5514a08887732f3342
download
a75b98ed116abd1bb9de6f1c541a61aca44e9a6e.tar.gz

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 <pulkomandy@pulkomandy.tk>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>

Diff

 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 691a3c8..abbf1c2 100644
--- a/src/apps/drivesetup/MainWindow.cpp
+++ b/src/apps/drivesetup/MainWindow.cpp
@@ -529,6 +529,9 @@
				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 @@
					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 @@
				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) {