[idd] helper: send message over pipe when settings changed

This commit is contained in:
Quantum
2026-06-05 00:00:45 -04:00
committed by Geoffrey McRae
parent e4e211f07a
commit 0664e510a2
8 changed files with 50 additions and 9 deletions

View File

@@ -20,6 +20,7 @@
#pragma once
#include "CWindow.h"
#include <functional>
#include <memory>
#include <optional>
@@ -37,6 +38,8 @@ class CNotifyWindow : public CWindow
bool closeRequested;
std::unique_ptr<CConfigWindow> m_config;
std::function<void()> m_onSettingChange;
LRESULT onNotifyIcon(UINT uEvent, WORD wIconId, int x, int y);
void registerIcon();
void handleGPUNotification(bool hasGPU);
@@ -69,4 +72,6 @@ public:
HWND hwndDialog();
void close();
void onSettingChange(std::function<void()> func) { m_onSettingChange = std::move(func); }
};