mirror of
https://github.com/hyprwm/hyprpaper.git
synced 2025-12-19 20:20:02 +01:00
ui: pass logger to toolkit
This commit is contained in:
parent
0c0a814d26
commit
33df1eecef
1 changed files with 5 additions and 1 deletions
|
|
@ -82,7 +82,11 @@ void CUI::registerOutput(const SP<Hyprtoolkit::IOutput>& mon) {
|
|||
bool CUI::run() {
|
||||
static const auto PENABLEIPC = Hyprlang::CSimpleConfigValue<Hyprlang::INT>(g_config->hyprlang(), "ipc");
|
||||
|
||||
m_backend = Hyprtoolkit::IBackend::create();
|
||||
auto data = Hyprtoolkit::IBackend::SBackendCreationData();
|
||||
data.pLogConnection = makeShared<Hyprutils::CLI::CLoggerConnection>(*g_logger.get());
|
||||
data.pLogConnection->setName("hyprtoolkit");
|
||||
data.pLogConnection->setLogLevel(LOG_DEBUG);
|
||||
m_backend = Hyprtoolkit::IBackend::createWithData(data);
|
||||
|
||||
if (!m_backend)
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue