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(+)
@@ -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) {