Skip to content

Commit

Permalink
demo_docking: handle cases where there is no user settings
Browse files Browse the repository at this point in the history
  • Loading branch information
pthom committed May 16, 2024
1 parent 658bc8b commit 3971c13
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions bindings/imgui_bundle/demos_cpp/demos_immapp/demo_docking.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ std::string MyAppSettingsToString(const MyAppSettings& myAppSettings)
}
MyAppSettings StringToMyAppSettings(const std::string& s)
{
if (s.empty())
return MyAppSettings();
MyAppSettings myAppSettings;
using namespace nlohmann;
try {
Expand Down

0 comments on commit 3971c13

Please sign in to comment.