Fixed two minor cosmetic issues.

This commit is contained in:
Leon Styhre 2021-01-11 18:18:44 +01:00
parent 6479178186
commit 9dd8aacb28
2 changed files with 9 additions and 3 deletions

View file

@ -302,7 +302,7 @@ void updateGamelist(SystemData* system)
Utils::FileSystem::createDirectory(Utils::FileSystem::getParent(xmlWritePath));
LOG(LogDebug) << "Gamelist::updateGamelist(): Added/updated " << numUpdated <<
(numUpdated == 1 ? " entity in '" : " entities in \"") << xmlReadPath << "\"";
(numUpdated == 1 ? " entity in \"" : " entities in \"") << xmlReadPath << "\"";
#if defined(_WIN64)
if (!doc.save_file(Utils::String::stringToWideString(xmlWritePath).c_str())) {

View file

@ -62,10 +62,16 @@ GuiComplexTextEditPopup::GuiComplexTextEditPopup(
std::vector< std::shared_ptr<ButtonComponent> > buttons;
buttons.push_back(std::make_shared<ButtonComponent>(mWindow, acceptBtnText, acceptBtnText,
[this, okCallback] { okCallback(mText->getValue()); delete this; }));
[this, okCallback] {
okCallback(mText->getValue());
delete this;
}));
buttons.push_back(std::make_shared<ButtonComponent>(mWindow, loadBtnText, loadBtnHelpText,
[this, infoString2] {
mText->setValue(infoString2); mText->setCursor(infoString2.size()); }));
mText->setValue(infoString2);
mText->setCursor(0);
mText->setCursor(infoString2.size());
}));
buttons.push_back(std::make_shared<ButtonComponent>(mWindow, clearBtnText, clearBtnHelpText,
[this] { mText->setValue(""); }));
if (!mHideCancelButton)