Fix webview blocking the freeDisclaimer click.

This commit is contained in:
Chax
2023-06-09 20:41:00 +02:00
parent 3453ca1c5b
commit 374685eeae
2 changed files with 15 additions and 15 deletions

28
MainForm.Designer.cs generated
View File

@@ -125,8 +125,8 @@ namespace AndroidSideloader
this.etaLabel_Tooltip = new System.Windows.Forms.ToolTip(this.components);
this.EnterInstallBox_Tooltip = new System.Windows.Forms.ToolTip(this.components);
this.panel2 = new System.Windows.Forms.Panel();
this.downloadInstallGameButton = new AndroidSideloader.RoundButton();
this.webView21 = new Microsoft.Web.WebView2.WinForms.WebView2();
this.downloadInstallGameButton = new AndroidSideloader.RoundButton();
this.MountButton = new AndroidSideloader.RoundButton();
this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.ULGif)).BeginInit();
@@ -808,9 +808,6 @@ namespace AndroidSideloader
//
// freeDisclaimer
//
this.freeDisclaimer.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.freeDisclaimer.AutoSize = true;
this.freeDisclaimer.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20)))));
this.freeDisclaimer.DataBindings.Add(new System.Windows.Forms.Binding("ForeColor", global::AndroidSideloader.Properties.Settings.Default, "FontColor", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged));
@@ -1311,6 +1308,18 @@ namespace AndroidSideloader
this.panel2.Size = new System.Drawing.Size(798, 34);
this.panel2.TabIndex = 96;
//
// webView21
//
this.webView21.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.webView21.CreationProperties = null;
this.webView21.DefaultBackgroundColor = System.Drawing.Color.White;
this.webView21.Enabled = false;
this.webView21.Location = new System.Drawing.Point(224, 475);
this.webView21.Name = "webView21";
this.webView21.Size = new System.Drawing.Size(374, 214);
this.webView21.TabIndex = 97;
this.webView21.ZoomFactor = 1D;
//
// downloadInstallGameButton
//
this.downloadInstallGameButton.Active1 = System.Drawing.Color.FromArgb(((int)(((byte)(40)))), ((int)(((byte)(40)))), ((int)(((byte)(40)))));
@@ -1339,17 +1348,6 @@ namespace AndroidSideloader
this.downloadInstallGameButton.DragDrop += new System.Windows.Forms.DragEventHandler(this.Form1_DragDrop);
this.downloadInstallGameButton.DragEnter += new System.Windows.Forms.DragEventHandler(this.Form1_DragEnter);
//
// webView21
//
this.webView21.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.webView21.CreationProperties = null;
this.webView21.DefaultBackgroundColor = System.Drawing.Color.White;
this.webView21.Location = new System.Drawing.Point(224, 475);
this.webView21.Name = "webView21";
this.webView21.Size = new System.Drawing.Size(374, 214);
this.webView21.TabIndex = 97;
this.webView21.ZoomFactor = 1D;
//
// MountButton
//
this.MountButton.Active1 = System.Drawing.Color.FromArgb(((int)(((byte)(40)))), ((int)(((byte)(40)))), ((int)(((byte)(40)))));

View File

@@ -3375,6 +3375,7 @@ Things you can try:
if (!Properties.Settings.Default.TrailersOn)
{
webView21.Enabled = false;
webView21.Hide();
if (!keyheld)
{
@@ -3435,6 +3436,7 @@ Things you can try:
await CreateEnviroment();
enviromentCreated = true;
}
webView21.Enabled = true;
webView21.Show();
string query = $"{CurrentGameName} VR trailer"; // Create the search query by appending " VR trailer" to the current game name
string encodedQuery = WebUtility.UrlEncode(query);