mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
Merge pull request #2443 from Haselnussbomber/auto-update-on-free-trial
Some checks are pending
Some checks are pending
Fix systems not working on the Free Trial
This commit is contained in:
commit
5290e191a1
2 changed files with 4 additions and 6 deletions
|
|
@ -249,7 +249,8 @@ internal sealed class ClientState : IInternalDisposableService, IClientState
|
||||||
ConditionFlag.NormalConditions,
|
ConditionFlag.NormalConditions,
|
||||||
ConditionFlag.Jumping,
|
ConditionFlag.Jumping,
|
||||||
ConditionFlag.Mounted,
|
ConditionFlag.Mounted,
|
||||||
ConditionFlag.UsingFashionAccessory]);
|
ConditionFlag.UsingFashionAccessory,
|
||||||
|
ConditionFlag.OnFreeTrial]);
|
||||||
|
|
||||||
blockingFlag = blockingConditions.FirstOrDefault();
|
blockingFlag = blockingConditions.FirstOrDefault();
|
||||||
return blockingFlag == 0;
|
return blockingFlag == 0;
|
||||||
|
|
|
||||||
|
|
@ -491,13 +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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private bool IsPluginManagerReady()
|
private bool IsPluginManagerReady()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue