From: lx-s Date: Thu, 9 Jul 2026 18:05:15 +0000 (+0200) Subject: Fixed include order problems #55 X-Git-Tag: 2.6.0.0~65 X-Git-Url: https://repos.lx-s.de/gitweb/?a=commitdiff_plain;h=c3f09f50d7132ff35b88286c13a493e129a4f5cd;p=winmute.git Fixed include order problems #55 --- diff --git a/WinMute.slnx b/WinMute.slnx index 00cc5b4..8e6c99e 100644 --- a/WinMute.slnx +++ b/WinMute.slnx @@ -2,7 +2,5 @@ - - - + diff --git a/WinMute/MuteControl.cpp b/WinMute/MuteControl.cpp index 7b962aa..afcf763 100644 --- a/WinMute/MuteControl.cpp +++ b/WinMute/MuteControl.cpp @@ -440,7 +440,7 @@ void MuteControl::NotifyLogout() } } -void MuteControl::NotifySuspend(bool [[maybe_unused]] active) +void MuteControl::NotifySuspend([[maybe_unused]] bool active) { WMLog::GetInstance().LogInfo(L"Mute Event: Suspend start"); if (muteConfig_[MuteTypeSuspend].shouldMute) { diff --git a/WinMute/MuteControl.h b/WinMute/MuteControl.h index 05b7adb..2a0f536 100644 --- a/WinMute/MuteControl.h +++ b/WinMute/MuteControl.h @@ -35,6 +35,9 @@ POSSIBILITY OF SUCH DAMAGE. #include "common.h" +#include "WinAudio.h" +#include "TrayIcon.h" + class MuteControl { public: MuteControl(); diff --git a/WinMute/QuietHoursTimer.h b/WinMute/QuietHoursTimer.h index 7140067..6a9a454 100644 --- a/WinMute/QuietHoursTimer.h +++ b/WinMute/QuietHoursTimer.h @@ -35,6 +35,8 @@ POSSIBILITY OF SUCH DAMAGE. #include "common.h" +#include "WMSettings.h" + static constexpr int WM_WINMUTE_QUIETHOURS_START = WM_APP + 202; static constexpr int WM_WINMUTE_QUIETHOURS_END = WM_APP + 203; diff --git a/WinMute/UpdateChecker.h b/WinMute/UpdateChecker.h index a350179..d85b9f9 100644 --- a/WinMute/UpdateChecker.h +++ b/WinMute/UpdateChecker.h @@ -35,7 +35,7 @@ POSSIBILITY OF SUCH DAMAGE. #include "WMSettings.h" -#include +#include "libs/json.hpp" enum class UpdateCheckInterval : int { DISABLED = 0, diff --git a/WinMute/WinMute.vcxproj b/WinMute/WinMute.vcxproj index db1a043..42ed7b5 100644 --- a/WinMute/WinMute.vcxproj +++ b/WinMute/WinMute.vcxproj @@ -77,7 +77,7 @@ Windows true - mincore.lib;windowsapp.lib;Winhttp.lib;Bthprops.lib;Winmm.lib;UxTheme.lib;Wlanapi.lib;comctl32.lib;WtsApi32.lib;Version.lib;PowrProf.lib%(AdditionalDependencies) + mincore.lib;windowsapp.lib;Winhttp.lib;Bthprops.lib;Winmm.lib;UxTheme.lib;Wlanapi.lib;comctl32.lib;WtsApi32.lib;Version.lib;PowrProf.lib;%(AdditionalDependencies) PerMonitorHighDPIAware @@ -107,7 +107,7 @@ true true true - mincore.lib;windowsapp.lib;Winhttp.lib;Bthprops.lib;Winmm.lib;UxTheme.lib;Wlanapi.lib;comctl32.lib;WtsApi32.lib;Version.lib;PowrProf.lib%(AdditionalDependencies) + mincore.lib;windowsapp.lib;Winhttp.lib;Bthprops.lib;Winmm.lib;UxTheme.lib;Wlanapi.lib;comctl32.lib;WtsApi32.lib;Version.lib;PowrProf.lib;%(AdditionalDependencies) UseLinkTimeCodeGeneration true true