Skip to content

Commit

Permalink
clan-format and wrong substr argument
Browse files Browse the repository at this point in the history
  • Loading branch information
gkdwoe committed Oct 24, 2024
1 parent 6c0974b commit eaf3cc7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/config/ConfigManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
#include <filesystem>

static Hyprlang::CParseResult handleWallpaper(const char* C, const char* V) {
const std::string COMMAND = C;
const std::string VALUE = V;
const std::string COMMAND = C;
const std::string VALUE = V;
Hyprlang::CParseResult result;

if (VALUE.find_first_of(',') == std::string::npos) {
Expand All @@ -27,7 +27,7 @@ static Hyprlang::CParseResult handleWallpaper(const char* C, const char* V) {

if (WALLPAPER.find("tile:") == 0) {
WALLPAPER = WALLPAPER.substr(5);
tile = true;
tile = true;
}

if (WALLPAPER[0] == '~') {
Expand All @@ -51,7 +51,7 @@ static Hyprlang::CParseResult handleWallpaper(const char* C, const char* V) {
g_pHyprpaper->clearWallpaperFromMonitor(MONITOR);
g_pHyprpaper->m_mMonitorActiveWallpapers[MONITOR] = WALLPAPER;
g_pHyprpaper->m_mMonitorWallpaperRenderData[MONITOR].contain = contain;
g_pHyprpaper->m_mMonitorWallpaperRenderData[MONITOR].tile = tile;
g_pHyprpaper->m_mMonitorWallpaperRenderData[MONITOR].tile = tile;

if (MONITOR.empty()) {
for (auto& m : g_pHyprpaper->m_vMonitors) {
Expand Down Expand Up @@ -151,7 +151,7 @@ static Hyprlang::CParseResult handleReload(const char* C, const char* V) {
}

if (WALLPAPER.find("tile:") == 0) {
WALLPAPER = WALLPAPER.substr(8);
WALLPAPER = WALLPAPER.substr(5);
}

auto preloadResult = handlePreload(C, WALLPAPER.c_str());
Expand Down

0 comments on commit eaf3cc7

Please sign in to comment.