Permalink
Browse files

Fixed loading of settings when smsinput enabled.

  • Loading branch information...
1 parent 2732f31 commit e6efe5333d6ec8b1a79ddc6a7496b84870ccfb50 @Ben-Barron committed Jul 28, 2011
Showing with 5 additions and 5 deletions.
  1. +5 −5 SettingsForm.cs
View
@@ -61,11 +61,6 @@ public SettingsForm()
lvKeys.Items.Add(new ListViewItem(key.ToString()));
}
- if (!loadSettings())
- {
- saveSettings();
- }
-
try
{
remote = new PS3Remote(int.Parse(txtVendorId.Text.Remove(0, 2), System.Globalization.NumberStyles.HexNumber), int.Parse(txtProductId.Text.Remove(0, 2), System.Globalization.NumberStyles.HexNumber), cbHibernation.Checked);
@@ -82,6 +77,11 @@ public SettingsForm()
}
keyboard = new SendInputAPI.Keyboard(cbSms.Checked);
+
+ if (!loadSettings())
+ {
+ saveSettings();
+ }
}
private void cbHibernation_CheckedChanged(object sender, EventArgs e)

0 comments on commit e6efe53

Please sign in to comment.