refactor: rename IsNeverViewport to IsDisableViewport

This commit is contained in:
goat 2021-04-15 22:09:07 +02:00
parent e17745349a
commit 79a5cc1ed4
No known key found for this signature in database
GPG key ID: F18F057873895461
3 changed files with 4 additions and 4 deletions

View file

@ -115,7 +115,7 @@ namespace Dalamud.Configuration
/// <summary>
/// Gets or sets a value indicating whether viewports should always be disabled.
/// </summary>
public bool IsNeverViewport { get; set; } = true;
public bool IsDisableViewport { get; set; } = true;
/// <summary>
/// Load a configuration from the provided path.

View file

@ -37,7 +37,7 @@ namespace Dalamud.Interface
this.doToggleUiHideDuringGpose = this.dalamud.Configuration.ToggleUiHideDuringGpose;
this.doDocking = this.dalamud.Configuration.IsDocking;
this.doViewport = !this.dalamud.Configuration.IsNeverViewport;
this.doViewport = !this.dalamud.Configuration.IsDisableViewport;
this.doPluginTest = this.dalamud.Configuration.DoPluginTest;
this.thirdRepoList = this.dalamud.Configuration.ThirdRepoList.Select(x => x.Clone()).ToList();
@ -375,7 +375,7 @@ namespace Dalamud.Interface
this.dalamud.Configuration.IsDocking = this.doDocking;
// This is applied every frame in InterfaceManager::CheckViewportState()
this.dalamud.Configuration.IsNeverViewport = !this.doViewport;
this.dalamud.Configuration.IsDisableViewport = !this.doViewport;
// Apply docking flag
if (!this.dalamud.Configuration.IsDocking)

View file

@ -294,7 +294,7 @@ namespace Dalamud.Interface
private void CheckViewportState()
{
if (this.dalamud.Configuration.IsNeverViewport || this.scene.SwapChain.IsFullScreen || ImGui.GetPlatformIO().Monitors.Size == 1)
if (this.dalamud.Configuration.IsDisableViewport || this.scene.SwapChain.IsFullScreen || ImGui.GetPlatformIO().Monitors.Size == 1)
{
ImGui.GetIO().ConfigFlags &= ~ImGuiConfigFlags.ViewportsEnable;
return;