mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2025-02-02 18:12:32 +01:00
Removed unnecessary method override at this point
This commit is contained in:
parent
dedb1c9ad9
commit
56903bce1f
@ -52,7 +52,6 @@ namespace DS4Windows
|
||||
Options opt;
|
||||
private bool optPop;
|
||||
public Size oldsize;
|
||||
public bool mAllowVisible;
|
||||
bool contextclose;
|
||||
bool turnOffTemp;
|
||||
bool runningBat;
|
||||
@ -237,11 +236,9 @@ namespace DS4Windows
|
||||
|
||||
if (!(startMinimizedCheckBox.Checked || mini))
|
||||
{
|
||||
mAllowVisible = true;
|
||||
Show();
|
||||
}
|
||||
|
||||
Form_Resize(null, null);
|
||||
RefreshProfiles();
|
||||
/*opt = new Options(this);
|
||||
opt.Icon = this.Icon;
|
||||
@ -399,6 +396,7 @@ namespace DS4Windows
|
||||
}
|
||||
|
||||
instance = this;
|
||||
Form_Resize(null, null);
|
||||
if (btnStartStop.Enabled && start)
|
||||
TaskRunner.Delay(50).ContinueWith((t) => this.BeginInvoke((System.Action)(() => BtnStartStop_Clicked())));
|
||||
}
|
||||
@ -500,17 +498,6 @@ namespace DS4Windows
|
||||
}
|
||||
}
|
||||
|
||||
protected override void SetVisibleCore(bool value)
|
||||
{
|
||||
if (!mAllowVisible)
|
||||
{
|
||||
value = false;
|
||||
if (!IsHandleCreated) CreateHandle();
|
||||
}
|
||||
|
||||
base.SetVisibleCore(value);
|
||||
}
|
||||
|
||||
public static string GetTopWindowName()
|
||||
{
|
||||
IntPtr hWnd = GetForegroundWindow();
|
||||
@ -1591,7 +1578,6 @@ Properties.Resources.DS4Update, MessageBoxButtons.YesNo, MessageBoxIcon.Question
|
||||
|
||||
private void editMenu_Click(object sender, EventArgs e)
|
||||
{
|
||||
mAllowVisible = true;
|
||||
Show();
|
||||
WindowState = FormWindowState.Normal;
|
||||
ToolStripMenuItem em = (ToolStripMenuItem)sender;
|
||||
@ -1741,7 +1727,6 @@ Properties.Resources.DS4Update, MessageBoxButtons.YesNo, MessageBoxIcon.Question
|
||||
|
||||
private void openToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
mAllowVisible = true;
|
||||
Show();
|
||||
Focus();
|
||||
WindowState = FormWindowState.Normal;
|
||||
|
Loading…
x
Reference in New Issue
Block a user