Title bar is now updated with current game name.

This commit is contained in:
WrinklyNinja
2014-07-20 11:32:19 +01:00
parent d4ca949e8f
commit 6feaca0a83
+6
View File
@@ -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;
}