We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3703005 + 0bc6a78 commit ac75550Copy full SHA for ac75550
1 file changed
src/_MainLevelsEditorMenu.hpp
@@ -405,7 +405,8 @@ class MainLevelsEditorMenu : public geode::Popup<> {
405
auto level_export = level::exportLevelFile(level, path);
406
if (level_export.isOk()) {
407
auto dbg_json = level_export.unwrapOrDefault();
408
- dbg_json["levelString"] = dbg_json["levelString"].asString().unwrapOrDefault().erase(36, 9999999) + "...";
+ auto level_string = dbg_json["levelString"].asString().unwrapOrDefault();
409
+ if (level_string.size() > 35) dbg_json["levelString"] = level_string.erase(36, 9999999) + "...";
410
411
auto body = std::stringstream();
412
0 commit comments