diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index fdf71c8..02bd72b 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -209,7 +209,6 @@ void CConfigManager::init() { m_config.addSpecialConfigValue(name, "shadow_passes", Hyprlang::INT{0}); \ m_config.addSpecialConfigValue(name, "shadow_color", Hyprlang::INT{0xFF000000}); \ m_config.addSpecialConfigValue(name, "shadow_boost", Hyprlang::FLOAT{1.2}); - m_config.addConfigValue("general:disable_loading_bar", Hyprlang::INT{0}); m_config.addConfigValue("general:text_trim", Hyprlang::INT{1}); m_config.addConfigValue("general:hide_cursor", Hyprlang::INT{0}); m_config.addConfigValue("general:grace", Hyprlang::INT{0}); diff --git a/src/renderer/Renderer.cpp b/src/renderer/Renderer.cpp index 2b303cb..d5533bf 100644 --- a/src/renderer/Renderer.cpp +++ b/src/renderer/Renderer.cpp @@ -201,8 +201,6 @@ CRenderer::CRenderer() { // CRenderer::SRenderFeedback CRenderer::renderLock(const CSessionLockSurface& surf) { - static const auto DISABLEBAR = g_pConfigManager->getValue("general:disable_loading_bar"); - projection = Mat3x3::outputProjection(surf.size, HYPRUTILS_TRANSFORM_NORMAL); g_pEGL->makeCurrent(surf.eglSurface); @@ -221,15 +219,7 @@ CRenderer::SRenderFeedback CRenderer::renderLock(const CSessionLockSurface& surf SRenderFeedback feedback; const bool WAITFORASSETS = !g_pHyprlock->m_bImmediateRender && !asyncResourceGatherer->gathered; - if (WAITFORASSETS) { - - // render status - if (!*DISABLEBAR) { - CBox progress = {0, 0, asyncResourceGatherer->progress * surf.size.x, 2}; - renderRect(progress, CHyprColor{0.2f, 0.1f, 0.1f, 1.f}, 0); - } - } else { - + if (!WAITFORASSETS) { // render widgets const auto WIDGETS = getOrCreateWidgetsFor(surf); for (auto& w : WIDGETS) {