@@ -83,10 +83,7 @@ public TrayIcon()
83
83
_updateDownloadForm = new Lazy < UpdateDownloadForm > ( ( ) =>
84
84
{
85
85
UpdateDownloadForm form = null ;
86
- _context . Send ( _ =>
87
- {
88
- form = new UpdateDownloadForm ( ) ;
89
- } , null ) ;
86
+ _context . Send ( _ => { form = new UpdateDownloadForm ( ) ; } , null ) ;
90
87
return form ;
91
88
} ) ;
92
89
//Localization
@@ -179,7 +176,7 @@ private void PopulateSettingsMenu()
179
176
_settingsMenu . Items . Add ( TrayIconStrings . playbackDevices , ResourcePlaybackDevicesBitmap ,
180
177
( sender , e ) => { Process . Start ( new ProcessStartInfo ( "control" , "mmsys.cpl sounds" ) ) ; } ) ;
181
178
_settingsMenu . Items . Add ( TrayIconStrings . volumeMixer , ResourceMixerBitmap ,
182
- ( sender , e ) => { Process . Start ( new ProcessStartInfo ( "sndvol.exe" ) ) ; } ) ;
179
+ ( sender , e ) => { Process . Start ( new ProcessStartInfo ( "sndvol.exe" ) ) ; } ) ;
183
180
_settingsMenu . Items . Add ( SettingsStrings . resetAudioDevices , Resources . resetAudioDevice . ToBitmap ( ) ,
184
181
( sender , e ) => { AudioSwitcher . Instance . ResetProcessDeviceConfiguration ( ) ; } ) ;
185
182
_settingsMenu . Items . Add ( TrayIconStrings . settings , ResourceSettingsSmallBitmap ,
@@ -213,7 +210,7 @@ private void OnUpdateClick(object sender, EventArgs eventArgs)
213
210
214
211
StopAnimationIconUpdate ( ) ;
215
212
NotifyIcon . BalloonTipClicked -= OnUpdateClick ;
216
- _updateDownloadForm . Value . DownloadRelease ( ( AppRelease ) _updateMenuItem . Tag ) ;
213
+ _context . Send ( _ => { _updateDownloadForm . Value . DownloadRelease ( ( AppRelease ) _updateMenuItem . Tag ) ; } , null ) ;
217
214
}
218
215
219
216
private void SetEventHandlers ( )
0 commit comments