From 3269d703b20e5641d5492dbad2f9d6b8ed913fd3 Mon Sep 17 00:00:00 2001 From: Subhraman Sarkar Date: Thu, 5 Sep 2024 21:23:24 +0530 Subject: [PATCH] file dialog: improve checking and adjust strings 1. selecting an item from the file list will cause validation to run 2. strings adjusted so they are correctly picked up by gettext --- src/gui/dialogs/file_dialog.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/gui/dialogs/file_dialog.cpp b/src/gui/dialogs/file_dialog.cpp index 191354c90ae..9a19b5c8279 100644 --- a/src/gui/dialogs/file_dialog.cpp +++ b/src/gui/dialogs/file_dialog.cpp @@ -35,6 +35,7 @@ #include "log.hpp" #include "serialization/unicode.hpp" +#include #include static lg::log_domain log_filedlg{"gui/dialogs/file_dialog"}; @@ -170,14 +171,14 @@ void file_dialog::check_filename() { button& save_btn = find_widget