From d8e1a86ab3cb5d3aaf11a4e75987e69963161228 Mon Sep 17 00:00:00 2001 From: GEEKiDoS Date: Mon, 16 Sep 2024 13:56:10 +0800 Subject: [PATCH] enable devtools on debug mode --- src/client/launcher/launcher.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/client/launcher/launcher.cpp b/src/client/launcher/launcher.cpp index 1a6e0f8..53de9c4 100644 --- a/src/client/launcher/launcher.cpp +++ b/src/client/launcher/launcher.cpp @@ -309,9 +309,12 @@ void launcher::create_main_menu() } ); -#if _DEBUG && !USE_EMBEDDED - smartview_->set_url("http://localhost:5173/"); +#if _DEBUG smartview_->set_dev_tools(true); +#endif + +#if !USE_EMBEDDED + smartview_->set_url("http://localhost:5173/"); #else smartview_->embed(laochan::embedded::all()); smartview_->serve("");