♻️ refactor: logging

This commit is contained in:
2026-02-27 17:02:19 +01:00
parent c8acbf1319
commit 1ccb26f42b
15 changed files with 230 additions and 174 deletions
+9 -2
View File
@@ -17,6 +17,8 @@
using namespace WallReel::Core;
WALLREEL_DECLARE_SENDER("Main")
int main(int argc, char* argv[]) {
AppOptions s_options;
@@ -33,6 +35,13 @@ int main(int argc, char* argv[]) {
QQmlApplicationEngine engine;
auto cacheMgr = new Cache::Manager(Utils::getCacheDir());
if (s_options.clearCache) {
cacheMgr->clearCache();
return 0;
}
auto config = new Config::Manager(
Utils::getConfigDir(),
s_options.appendDirs,
@@ -45,8 +54,6 @@ int main(int argc, char* argv[]) {
"Config",
config);
auto cacheMgr = new Cache::Manager(Utils::getCacheDir());
auto imageModel = new Image::Model(
config->getSortConfig(),
*cacheMgr,