mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Title bar is now updated with current game name.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user