Bugfix for TaggedButtonGrid in combination with AutoCleanForm
This commit is contained in:
parent
cd75275950
commit
6ae92b0b29
@ -447,4 +447,10 @@ public class FormBase : IDisposable
|
||||
Controls.Remove(c);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns if this instance is a subclass of AutoCleanForm. Necessary to prevent message deletion if not necessary.
|
||||
/// </summary>
|
||||
public bool IsAutoCleanForm() => this.GetType().IsSubclassOf(typeof(AutoCleanForm));
|
||||
|
||||
}
|
||||
@ -455,7 +455,7 @@ public class TaggedButtonGrid : MultiView
|
||||
if (result.MessageText == "📁")
|
||||
{
|
||||
//Remove button click message
|
||||
if (DeletePreviousMessage)
|
||||
if (DeletePreviousMessage && !Device.ActiveForm.IsAutoCleanForm())
|
||||
{
|
||||
await Device.DeleteMessage(result.MessageId);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user