diff --git a/Project-Aurora/Project-Aurora/Profiles/Overlays/SkypeOverlay/Event_SkypeOverlay.cs b/Project-Aurora/Project-Aurora/Profiles/Overlays/SkypeOverlay/Event_SkypeOverlay.cs index 994e9ec90..6762279a7 100644 --- a/Project-Aurora/Project-Aurora/Profiles/Overlays/SkypeOverlay/Event_SkypeOverlay.cs +++ b/Project-Aurora/Project-Aurora/Profiles/Overlays/SkypeOverlay/Event_SkypeOverlay.cs @@ -44,7 +44,7 @@ public static void SetIsCalling(bool state) _is_calling = state; } - public new bool IsEnabled + public override bool IsEnabled { get { return Global.Configuration.skype_overlay_settings.enabled; } } diff --git a/Project-Aurora/Project-Aurora/Utils/ActiveProcessMonitor.cs b/Project-Aurora/Project-Aurora/Utils/ActiveProcessMonitor.cs index 87c1a9ebb..2205570ae 100644 --- a/Project-Aurora/Project-Aurora/Utils/ActiveProcessMonitor.cs +++ b/Project-Aurora/Project-Aurora/Utils/ActiveProcessMonitor.cs @@ -111,8 +111,8 @@ public string GetActiveWindowsProcessname() { if (windowHandle.Equals(IntPtr.Zero)) windowHandle = GetForegroundWindow(); - - if (GetWindowThreadProcessId(windowHandle, out uint pid) > 0) + uint pid; + if (GetWindowThreadProcessId(windowHandle, out pid) > 0) return Process.GetProcessById((int)pid).MainModule.FileName; } catch(Exception exc)