Update vulkan layer banner on first shown

* Prevents an ordering issue where the --updatedone installation of the
  layer happens after the capture dialog first checks layer registration
This commit is contained in:
baldurk
2016-02-08 23:10:53 +01:00
parent df714b3f47
commit d865223879
2 changed files with 6 additions and 0 deletions
+1
View File
@@ -721,6 +721,7 @@
this.ShowHint = WeifenLuo.WinFormsUI.Docking.DockState.Document;
this.Text = "CaptureDialog";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.CaptureDialog_FormClosing);
this.Shown += new System.EventHandler(this.CaptureDialog_Shown);
this.actionsGroup.ResumeLayout(false);
this.actionsGroup.PerformLayout();
this.actionsFlow.ResumeLayout(false);
@@ -480,6 +480,11 @@ namespace renderdocui.Windows.Dialogs
}
}
private void CaptureDialog_Shown(object sender, EventArgs e)
{
vulkanLayerWarn.Visible = !Helpers.CheckVulkanLayerRegistration();
}
#endregion
private void capOptsGroup_Layout(object sender, LayoutEventArgs e)