add "disable_assets_check"

modified:   src/Compositor.cpp
modified:   src/config/ConfigManager.cpp
This commit is contained in:
MightyPlaza 2024-12-20 18:06:13 +00:00
parent 71dc9f6128
commit d44f8a1e1c
No known key found for this signature in database
GPG key ID: 284C27FD27A6DC0D
2 changed files with 3 additions and 1 deletions

View file

@ -2615,6 +2615,7 @@ WORKSPACEID CCompositor::getNewSpecialID() {
void CCompositor::performUserChecks() {
static auto PNOCHECKXDG = CConfigValue<Hyprlang::INT>("misc:disable_xdg_env_checks");
static auto PNOCHECKQTUTILS = CConfigValue<Hyprlang::INT>("misc:disable_hyprland_qtutils_check");
static auto PNOCHECKASSETS = CConfigValue<Hyprlang::INT>("misc:disable_assets_check");
if (!*PNOCHECKXDG) {
const auto CURRENT_DESKTOP_ENV = getenv("XDG_CURRENT_DESKTOP");
@ -2633,7 +2634,7 @@ void CCompositor::performUserChecks() {
}
}
if (g_pHyprOpenGL->failedAssetsNo > 0) {
if (!*PNOCHECKASSETS && g_pHyprOpenGL->failedAssetsNo > 0) {
g_pHyprNotificationOverlay->addNotification(std::format("Hyprland failed to load {} essential asset{}, blame your distro's packager for doing a bad job at packaging!",
g_pHyprOpenGL->failedAssetsNo, g_pHyprOpenGL->failedAssetsNo > 1 ? "s" : ""),
CHyprColor{1.0, 0.1, 0.1, 1.0}, 15000, ICON_ERROR);

View file

@ -388,6 +388,7 @@ CConfigManager::CConfigManager() {
m_pConfig->addConfigValue("misc:render_unfocused_fps", Hyprlang::INT{15});
m_pConfig->addConfigValue("misc:disable_xdg_env_checks", Hyprlang::INT{0});
m_pConfig->addConfigValue("misc:disable_hyprland_qtutils_check", Hyprlang::INT{0});
m_pConfig->addConfigValue("misc:disable_assets_check", Hyprlang::INT{0});
m_pConfig->addConfigValue("misc:lockdead_screen_delay", Hyprlang::INT{1000});
m_pConfig->addConfigValue("group:insert_after_current", Hyprlang::INT{1});