From 6feaca0a831d5ead2d5c3b40b0bee7179e98025c Mon Sep 17 00:00:00 2001 From: WrinklyNinja Date: Sun, 20 Jul 2014 11:32:19 +0100 Subject: [PATCH] Title bar is now updated with current game name. --- src/gui/handler.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/gui/handler.cpp b/src/gui/handler.cpp index 52ca0e1a..4761270b 100644 --- a/src/gui/handler.cpp +++ b/src/gui/handler.cpp @@ -111,6 +111,12 @@ namespace loot { return true; } else if (request == "getGameData") { + BOOST_LOG_TRIVIAL(info) << "Setting LOOT window title bar text to include game name: " << g_app_state.CurrentGame().Name(); +#if defined(OS_WIN) + HWND handle = browser->GetHost()->GetWindowHandle(); + SetWindowText(handle, ToWinWide("LOOT: " + g_app_state.CurrentGame().Name()).c_str()); +#endif + callback->Success(GetGameData()); return true; }