Skip to content

Commit

Permalink
Demo Docking: handle case when no user settings (emscripten won't sup…
Browse files Browse the repository at this point in the history
…port exceptions)
  • Loading branch information
pthom committed May 16, 2024
1 parent 1f10d34 commit e36fb1d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,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 e36fb1d

Please sign in to comment.