diff options
Diffstat (limited to 'src/wallpaper.cpp')
| -rw-r--r-- | src/wallpaper.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/wallpaper.cpp b/src/wallpaper.cpp index f0ae468..b4e0b76 100644 --- a/src/wallpaper.cpp +++ b/src/wallpaper.cpp @@ -1,10 +1,11 @@ -#include "wallpaper.hpp" +#include "logging.hpp" #include "optional.hpp" #include "setting.hpp" +#include "wallpaper.hpp" namespace wanda { - void set_wallpaper(std::filesystem::path wallpaper, std::shared_ptr<spdlog::logger> logger) + void set_wallpaper(std::filesystem::path wallpaper) { using namespace wanda::literals; using namespace wanda::std_ext; @@ -14,9 +15,9 @@ namespace wanda with(setting["picture-uri"_key], [&](auto & value) { value = "file://" + wallpaper.native(); }) || - [&] { logger->error("invalid settings key"); }; + [&] { get_logger()->error("invalid settings key"); }; }) || - [&] { logger->error("invalid setting"); }; + [&] { get_logger()->error("invalid setting"); }; } } // namespace wanda
\ No newline at end of file |
