From 68dac0e3088370cf191d72cf409c4b45e3d81cc8 Mon Sep 17 00:00:00 2001 From: cjee21 <77721854+cjee21@users.noreply.github.com> Date: Tue, 28 May 2024 23:15:55 +0800 Subject: [PATCH] Windows GUI: Fix text view strings Fix text view not displaying correct strings if view was previously switched to other views such as XML. --- Source/GUI/VCL/GUI_Main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/GUI/VCL/GUI_Main.cpp b/Source/GUI/VCL/GUI_Main.cpp index c6c7b4446..48a4fd2c8 100644 --- a/Source/GUI/VCL/GUI_Main.cpp +++ b/Source/GUI/VCL/GUI_Main.cpp @@ -878,6 +878,9 @@ void __fastcall TMainF::Refresh(TTabSheet *Page) if (!Prefs->Config(__T("InformTimestamp")).empty()) I->Option_Static(__T("Inform_Timestamp"), Prefs->Config(__T("InformTimestamp"))); + //Set language again to ensure proper display in case it was changed to XML etc. + I->Option_Static(__T("Language"), Prefs->Details[Prefs_Language].Read()); + Page_Text_Text->Text=I->Inform().c_str(); //Specific in case of no file