Convert write-only IBrowserWindow.Title property to method.

Write-only properties are confusing and the behavior is better
implemented as a method, which more clearly conveys the write-only
semantics.
This commit is contained in:
Kenneth Hsu
2018-12-09 21:42:40 -08:00
parent 8b6cf0c6d9
commit d02cf960c8
2 changed files with 2 additions and 2 deletions
@@ -7,7 +7,7 @@ namespace Duplicati.GUI.TrayIcon
{
public interface IBrowserWindow
{
string Title { set; }
void SetTitle(string title);
WindowIcons Icon { set; }
}
}
@@ -156,7 +156,7 @@ namespace Duplicati.GUI.TrayIcon
if (window != null)
{
window.Icon = WindowIcons.Regular;
window.Title = "Duplicati status";
window.SetTitle("Duplicati status");
}
}