Skip to content

Commit

Permalink
editor_converters_menu.cpp: Fix indentation code style
Browse files Browse the repository at this point in the history
Co-authored-by: Vankata453 <[email protected]>
  • Loading branch information
jamescdericco and Vankata453 authored Aug 2, 2024
1 parent c579652 commit 1065b33
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/supertux/menu/editor_converters_menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,16 @@ EditorConvertersMenu::EditorConvertersMenu() :

add_file(_("Select Tile Conversion File"), &m_tile_conversion_file, { "sttc" }, "images/converters", false,
[this](MenuItem& item, const std::string& file_path, bool in_basedir) {
if (in_basedir) {
std::string basename = FileSystem::basename(file_path);
auto it = m_converters.find(basename);
if (it == m_converters.end())
return;

item.set_text("\"" + it->second.title + "\"");
item.set_help(it->second.description + (it->second.author.empty() ? "" :
if (in_basedir) {
std::string basename = FileSystem::basename(file_path);
auto it = m_converters.find(basename);
if (it == m_converters.end())
return;

item.set_text("\"" + it->second.title + "\"");
item.set_help(it->second.description + (it->second.author.empty() ? "" :
"\n\n" + fmt::format(fmt::runtime(_("By: {}")), it->second.author)));
}});
}});

add_entry(MNID_CONVERT_TILES, _("Convert Tiles By File"))
.set_help(_("Convert all tiles in the current level by a file, specified above."));
Expand Down

0 comments on commit 1065b33

Please sign in to comment.