From bfc3783d9f6a64ca14b6f66df14a7912137aaaf6 Mon Sep 17 00:00:00 2001 From: Matt Borgerson Date: Thu, 26 Mar 2020 00:05:21 -0700 Subject: [PATCH] ui: Mark settings dirty on change from dialog --- ui/xemu-hud.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/xemu-hud.cc b/ui/xemu-hud.cc index cec588d1ec..a9e32648e9 100644 --- a/ui/xemu-hud.cc +++ b/ui/xemu-hud.cc @@ -980,8 +980,9 @@ struct SettingsWindow ImGui::SameLine(); if (ImGui::Button("Browse...", ImVec2(100, 0))) { const char *selected = noc_file_dialog_open(NOC_FILE_DIALOG_OPEN, filters, buf, NULL); - if (selected != NULL) { + if ((selected != NULL) && (strcmp(buf, selected) != 0)) { strncpy(buf, selected, len-1); + dirty = true; } } ImGui::PopID();