mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
InputText: Fixed multi-threading issues
This commit is contained in:
@ -294,6 +294,9 @@ namespace InputText
|
||||
|
||||
public bool ShowInputBox()
|
||||
{
|
||||
if (this.drBackup != DialogResult.None)
|
||||
return false;
|
||||
|
||||
if (this._FocusDismiss)
|
||||
{
|
||||
this.Show(this.parent);
|
||||
@ -324,6 +327,12 @@ namespace InputText
|
||||
return true;
|
||||
}
|
||||
|
||||
public void Abort()
|
||||
{
|
||||
this.drBackup = DialogResult.Cancel;
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void txtInput_Leave(object sender, EventArgs e)
|
||||
{
|
||||
if (this._FocusDismiss)
|
||||
|
Reference in New Issue
Block a user