Skip to content

Commit 2f6a388

Browse files
committed
Fix: Exception thrown when 'random' screensaver selectes an AI plugin.
1 parent ab58a3d commit 2f6a388

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

G33kShell.Desktop/Console/Controls/ScreensaverBase.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,13 @@ namespace G33kShell.Desktop.Console.Controls;
1818
/// </summary>
1919
public abstract class ScreensaverBase : AnimatedCanvas, IScreensaver
2020
{
21-
public string ActivationName { get; set; }
21+
private string m_activationName;
22+
23+
public string ActivationName
24+
{
25+
get => m_activationName ?? Name;
26+
set => m_activationName = value;
27+
}
2228

2329
protected ScreensaverBase(int width, int height, int targetFps = 30) : base(width, height, targetFps)
2430
{

0 commit comments

Comments
 (0)