Skip to content

Commit

Permalink
fix deadlock on login
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamiras committed Mar 15, 2024
1 parent 6d63ace commit 8aa8fc7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ui/win32/bindings/WindowBinding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,11 @@ void WindowBinding::UpdateAppTitle()
{
const auto& pEmulatorViewModel = ra::services::ServiceLocator::Get<ra::ui::viewmodels::WindowManager>().Emulator;
if (pEmulatorViewModel.IsAppTitleManaged())
SetWindowTextW(m_hWnd, GetValue(WindowViewModelBase::WindowTitleProperty).c_str());
{
InvokeOnUIThread([this]() {
SetWindowTextW(m_hWnd, GetValue(WindowViewModelBase::WindowTitleProperty).c_str());
});
}
}

void WindowBinding::SetInitialPosition(RelativePosition nDefaultHorizontalLocation, RelativePosition nDefaultVerticalLocation, const char* sSizeAndPositionKey)
Expand Down

0 comments on commit 8aa8fc7

Please sign in to comment.