Skip to content
This repository was archived by the owner on Apr 17, 2019. It is now read-only.

Commit f6eccc6

Browse files
committed
tidy up of registry vs prefsManager handling in screensaver for
1 parent ca5a31a commit f6eccc6

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

ScreensaverForm.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,6 @@ private void HandleUserActivity()
137137
{
138138
if (StartTime.AddSeconds(1) > DateTime.Now) return;
139139

140-
RegistryKey reg = Registry.CurrentUser.CreateSubKey(Program.KEY);
141-
142140
if (prefsManager.CloseOnActivity)
143141
{
144142
Close();
@@ -148,8 +146,6 @@ private void HandleUserActivity()
148146
closeButton.Visible = true;
149147
Cursor.Show();
150148
}
151-
152-
reg.Close();
153149
}
154150

155151
private void closeButton_Click(object sender, EventArgs e)

0 commit comments

Comments
 (0)