mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 10:17:22 +01:00
Use IsClientIdle in CanUpdateOrNag
This commit is contained in:
parent
e6df536ceb
commit
08a3998854
1 changed files with 2 additions and 6 deletions
|
|
@ -491,14 +491,10 @@ internal class AutoUpdateManager : IServiceType
|
||||||
|
|
||||||
private bool CanUpdateOrNag()
|
private bool CanUpdateOrNag()
|
||||||
{
|
{
|
||||||
var condition = Service<Condition>.Get();
|
var clientState = Service<ClientState>.Get();
|
||||||
return this.IsPluginManagerReady() &&
|
return this.IsPluginManagerReady() &&
|
||||||
!this.dalamudInterface.IsPluginInstallerOpen &&
|
!this.dalamudInterface.IsPluginInstallerOpen &&
|
||||||
condition.OnlyAny(ConditionFlag.NormalConditions,
|
clientState.IsClientIdle();
|
||||||
ConditionFlag.Jumping,
|
|
||||||
ConditionFlag.Mounted,
|
|
||||||
ConditionFlag.UsingFashionAccessory,
|
|
||||||
ConditionFlag.OnFreeTrial);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private bool IsPluginManagerReady()
|
private bool IsPluginManagerReady()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue