mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-30 12:23:39 +01:00
Merge pull request #114 from Poliwrath/taskbarflash
This commit is contained in:
commit
9874817b0b
2 changed files with 12 additions and 8 deletions
|
|
@ -27,6 +27,8 @@ namespace Dalamud
|
||||||
|
|
||||||
public Dictionary<int, PreferredRole> PreferredRoleReminders { get; set; }
|
public Dictionary<int, PreferredRole> PreferredRoleReminders { get; set; }
|
||||||
|
|
||||||
|
public bool DutyFinderTaskbarFlash { get; set; } = true;
|
||||||
|
|
||||||
public string LanguageOverride { get; set; }
|
public string LanguageOverride { get; set; }
|
||||||
|
|
||||||
public string LastVersion { get; set; }
|
public string LastVersion { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -67,14 +67,16 @@ namespace Dalamud.Game.Network {
|
||||||
contentFinderCondition.Image = 112324;
|
contentFinderCondition.Image = 112324;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!NativeFunctions.ApplicationIsActivated()) {
|
if (this.dalamud.Configuration.DutyFinderTaskbarFlash && !NativeFunctions.ApplicationIsActivated()) {
|
||||||
var flashInfo = new NativeFunctions.FLASHWINFO();
|
var flashInfo = new NativeFunctions.FLASHWINFO
|
||||||
flashInfo.cbSize = (uint)Marshal.SizeOf<NativeFunctions.FLASHWINFO>();
|
{
|
||||||
flashInfo.uCount = uint.MaxValue;
|
cbSize = (uint)Marshal.SizeOf<NativeFunctions.FLASHWINFO>(),
|
||||||
flashInfo.dwTimeout = 0;
|
uCount = uint.MaxValue,
|
||||||
flashInfo.dwFlags = NativeFunctions.FlashWindow.FLASHW_ALL |
|
dwTimeout = 0,
|
||||||
NativeFunctions.FlashWindow.FLASHW_TIMERNOFG;
|
dwFlags = NativeFunctions.FlashWindow.FLASHW_ALL |
|
||||||
flashInfo.hwnd = Process.GetCurrentProcess().MainWindowHandle;
|
NativeFunctions.FlashWindow.FLASHW_TIMERNOFG,
|
||||||
|
hwnd = Process.GetCurrentProcess().MainWindowHandle
|
||||||
|
};
|
||||||
NativeFunctions.FlashWindowEx(ref flashInfo);
|
NativeFunctions.FlashWindowEx(ref flashInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue