mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-30 17:57:57 +01:00
Fixed Title event test
This commit is contained in:
@@ -554,13 +554,17 @@ namespace Terminal.Gui {
|
||||
public ustring Title {
|
||||
get => title;
|
||||
set {
|
||||
title = value;
|
||||
SetNeedsDisplay ();
|
||||
if (!OnTitleChanging (title, value)) {
|
||||
var old = title;
|
||||
title = value;
|
||||
SetNeedsDisplay ();
|
||||
#if DEBUG
|
||||
if (title != null && string.IsNullOrEmpty (Id)) {
|
||||
Id = title.ToString ();
|
||||
if (title != null && string.IsNullOrEmpty (Id)) {
|
||||
Id = title.ToString ();
|
||||
}
|
||||
#endif // DEBUG
|
||||
OnTitleChanged (old, title);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -78,6 +78,7 @@ namespace Terminal.Gui {
|
||||
/// </summary>
|
||||
/// <remarks>The Title is only displayed when the <see cref="Wizard"/> is used as a modal pop-up (see <see cref="Wizard.Modal"/>.</remarks>
|
||||
public new ustring Title {
|
||||
// BUGBUG: v2 - No need for this as View now has Title w/ notifications.
|
||||
get => title;
|
||||
set {
|
||||
if (!OnTitleChanging (title, value)) {
|
||||
|
||||
Reference in New Issue
Block a user