2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-12-01 08:47:48 +00:00

feat: add modman title handler for windows

This commit is contained in:
Jan Laupetin
2025-10-31 21:15:17 +01:00
parent 87d65b99fb
commit b1bd9b9ffc
3 changed files with 82 additions and 0 deletions

View File

@@ -4,6 +4,7 @@
#include "Web/Binds/Binds.h"
#include "Web/Platform/AssetHandler.h"
#include "Web/Platform/Windows/FaviconHandlerWindows.h"
#include "Web/Platform/Windows/TitleHandlerWindows.h"
#include "Web/UiCommunication.h"
#include "Web/ViteAssets.h"
#include "Web/WebViewLib.h"
@@ -34,6 +35,7 @@ namespace
context.m_dev_tools_webview = std::make_unique<webview::webview>(false, nullptr);
auto& newWindow = *context.m_dev_tools_webview;
InstallFaviconHandler(newWindow);
InstallTitleHandler(newWindow);
newWindow.set_title("Devtools");
newWindow.set_size(640, 480, WEBVIEW_HINT_NONE);
@@ -69,6 +71,7 @@ namespace
InstallAssetHandler(newWindow);
InstallFaviconHandler(newWindow);
InstallTitleHandler(newWindow);
ui::RegisterAllBinds(newWindow);
#ifdef _DEBUG