summaryrefslogtreecommitdiff
path: root/indra/newview/llscripteditorws.cpp
diff options
context:
space:
mode:
authorRider Linden <rider@lindenlab.com>2026-08-12 16:08:52 -0700
committerRider Linden <rider@lindenlab.com>2026-08-12 16:08:52 -0700
commit222f568123c0ac9b6e4ed7be0dae020c8cb3f832 (patch)
treed663d52d0957a26e08836365612a5de99735e8a9 /indra/newview/llscripteditorws.cpp
parent32a8200a788b286073a11c81255aac471aa37b67 (diff)
Issue 6131: Show toast when starting and stopping the script edit server.
Diffstat (limited to 'indra/newview/llscripteditorws.cpp')
-rw-r--r--indra/newview/llscripteditorws.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/indra/newview/llscripteditorws.cpp b/indra/newview/llscripteditorws.cpp
index 2b77ff1481..0487ebd06d 100644
--- a/indra/newview/llscripteditorws.cpp
+++ b/indra/newview/llscripteditorws.cpp
@@ -45,6 +45,7 @@
#include "llinventorytype.h"
#include "llinventorydefines.h"
#include "llnotecard.h"
+#include "llnotificationsutil.h"
#include "llpreviewnotecard.h"
#include "llpreviewscript.h"
#include "llprocess.h"
@@ -261,11 +262,18 @@ LLScriptEditorWSServer::ptr_t LLScriptEditorWSServer::ensureServerRunning()
if (!server->isRunning())
{
+ U16 port = static_cast<U16>(gSavedSettings.getS32("ExternalWebsocketSyncPort"));
+ LLSD args;
+ args["PORT"] = static_cast<S32>(port);
+
if (!wsmgr.startServer(DEFAULT_SERVER_NAME))
{
LL_WARNS("ScriptEditorWS") << "Failed to start script editor websocket server" << LL_ENDL;
+ LLNotificationsUtil::add("ExternalEditorServerFailed", args);
return nullptr;
}
+
+ LLNotificationsUtil::add("ExternalEditorServerStarted", args);
}
return server;
@@ -377,6 +385,8 @@ void LLScriptEditorWSServer::onStopped()
mActiveConnections.clear();
LL_INFOS("ScriptEditorWS") << "Script editor WebSocket server stopped, all state cleaned up" << LL_ENDL;
+
+ LLNotificationsUtil::add("ExternalEditorServerStopped");
}
void LLScriptEditorWSServer::onConnectionOpened(const LLWebsocketMgr::WSConnection::ptr_t& connection)