In Save As, Enter should save with the text field name

This commit is contained in:
2025-03-15 16:05:32 -05:00
parent fc919cc234
commit 851b58b312

View File

@@ -2126,6 +2126,12 @@ public:
fs::path run() {
template_info_str = me["info1"].getText();
// When doing Save As, make Enter save in a new file, not cancel:
if(saving){
me["cancel"].setDefault(false);
me["save1"].setDefault(true);
}
me["cancel"].attachClickHandler(std::bind(&cFilePicker::doCancel, this));
me["find"].attachClickHandler(std::bind(&cFilePicker::doFileBrowser, this));
// Since it would be crazy to record and replay the metadata shown on a player's save picker