mirror of
https://github.com/vczh-libraries/Release.git
synced 2026-05-24 00:06:08 +08:00
...
This commit is contained in:
@@ -70,6 +70,7 @@ namespace demo
|
||||
textBox->SetText(reader.ReadToEnd());
|
||||
textBox->Select(TextPos(), TextPos());
|
||||
textBox->SetFocus();
|
||||
textBox->ClearUndoRedo();
|
||||
|
||||
fileName = dialogOpen->GetFileName();
|
||||
if (INVLOC.EndsWith(fileName, L".xml", Locale::IgnoreCase))
|
||||
@@ -81,8 +82,10 @@ namespace demo
|
||||
SetupTextConfig();
|
||||
}
|
||||
|
||||
textBox->ClearUndoRedo();
|
||||
AddRecentFile(path);
|
||||
GetApplication()->InvokeInMainThread(this, [=]()
|
||||
{
|
||||
AddRecentFile(path);
|
||||
});
|
||||
return true;
|
||||
}
|
||||
else
|
||||
@@ -147,7 +150,11 @@ namespace demo
|
||||
{
|
||||
SetupTextConfig();
|
||||
}
|
||||
AddRecentFile(targetFileName);
|
||||
|
||||
GetApplication()->InvokeInMainThread(this, [=]()
|
||||
{
|
||||
AddRecentFile(targetFileName);
|
||||
});
|
||||
return true;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user