diff options
author | iain holmes <iain@xamarin.com> | 2019-06-28 13:03:09 +0300 |
---|---|---|
committer | iain holmes <iain@xamarin.com> | 2019-07-03 11:20:54 +0300 |
commit | c086b137dd395dcf04d36741e580135c7b612e37 (patch) | |
tree | 0015e264534b5ca18efe12ad08b9150c3a32225c /main/src/addins/MacPlatform/MacPlatform.cs | |
parent | d0d3cf1386026559f07c971ba36e7f554e3df23b (diff) |
[A11y] Don't move the NSUserDefaults line
Diffstat (limited to 'main/src/addins/MacPlatform/MacPlatform.cs')
-rw-r--r-- | main/src/addins/MacPlatform/MacPlatform.cs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/main/src/addins/MacPlatform/MacPlatform.cs b/main/src/addins/MacPlatform/MacPlatform.cs index 943d0f3841..447404d4a0 100644 --- a/main/src/addins/MacPlatform/MacPlatform.cs +++ b/main/src/addins/MacPlatform/MacPlatform.cs @@ -383,8 +383,6 @@ namespace MonoDevelop.MacIntegration const string VoiceOverNoticeShownKey = "com.monodevelop.VoiceOverShown"; static void ShowVoiceOverNotice () { - NSUserDefaults defaults = NSUserDefaults.StandardUserDefaults; - if (voiceOverNoticeShown || PropertyService.Get<bool> (VoiceOverNoticeShownKey, false)) { return; } @@ -402,6 +400,7 @@ namespace MonoDevelop.MacIntegration var result = alert.RunModal (); switch (result) { case 1000: + NSUserDefaults defaults = NSUserDefaults.StandardUserDefaults; defaults.SetBool (true, EnabledKey); defaults.Synchronize (); |