Config: Port Input setting to new config system.

This commit is contained in:
Admiral H. Curtiss 2021-12-27 19:53:20 +01:00
commit 9c4b2b65b4
No known key found for this signature in database
GPG key ID: F051B4C4044F33FB
8 changed files with 15 additions and 26 deletions

View file

@ -157,7 +157,7 @@ void RenderWidget::UpdateCursor()
const bool keep_on_top = (windowFlags() & Qt::WindowStaysOnTopHint) != 0;
const bool should_hide =
(Settings::Instance().GetCursorVisibility() == SConfig::ShowCursor::Never) &&
(keep_on_top || SConfig::GetInstance().m_BackgroundInput || isActiveWindow());
(keep_on_top || Config::Get(Config::MAIN_INPUT_BACKGROUND_INPUT) || isActiveWindow());
setCursor(should_hide ? Qt::BlankCursor : Qt::ArrowCursor);
}
else