SessionDialog: Name the dialog after what it does, not after the initial state

The dialog always has 3 different tabs. After changing the tab, the
window title became misleading. It seems more helpful to use a windows
title that shows the intent of the dialog: Selecting a session.
This commit is contained in:
Mads Kiilerich 2025-07-26 20:47:23 +02:00
parent 749d465332
commit f79a6a6162

View file

@ -77,7 +77,7 @@ using namespace ArdourWidgets;
using namespace ARDOUR_UI_UTILS;
SessionDialog::SessionDialog (DialogTab initial_tab, const std::string& session_name, const std::string& session_path, const std::string& template_name, bool cancel_not_quit)
: ArdourDialog (initial_tab == New ? _("Session Setup") : _("Recent Sessions"), true, true)
: ArdourDialog (_("Select Session"), true, true)
, _initial_tab (initial_tab)
, new_name_was_edited (false)
, new_folder_chooser (FILE_CHOOSER_ACTION_SELECT_FOLDER)