@@ -20,7 +20,7 @@ public class MainPlugin : ISharpPlugin
2020 bool RPCalreadyLoaded ;
2121 private ISharpControl _control ;
2222 bool playedBefore ;
23- private SDRSharp . FrontEnds . SpyServer . ControllerPanel controllerPanel ;
23+ // private SDRSharp.FrontEnds.SpyServer.ControllerPanel controllerPanel;
2424 private TopWindowMessages windowMessages ;
2525 [ System . Diagnostics . CodeAnalysis . SuppressMessage ( "Style" , "IDE0044:Add readonly modifier" , Justification = "<Pending>" ) ]
2626 private RichPresence presence = new RichPresence ( )
@@ -43,7 +43,6 @@ public class MainPlugin : ISharpPlugin
4343 public void Initialize ( ISharpControl control )
4444 {
4545 IConfigurationPanelProvider configurationPanelProvider ;
46-
4746 if ( Utils . GetBooleanSetting ( "ShowWelcomePage" , true ) )
4847 {
4948 new WelcomeForm ( ) . ShowDialog ( ) ;
@@ -132,7 +131,7 @@ public void Initialize(ISharpControl control)
132131 try
133132 {
134133 configurationPanelProvider = ( IConfigurationPanelProvider ) _control . Source ;
135- controllerPanel = ( SDRSharp . FrontEnds . SpyServer . ControllerPanel ) configurationPanelProvider . Gui ;
134+ // controllerPanel = (SDRSharp.FrontEnds.SpyServer.ControllerPanel)configurationPanelProvider.Gui;
136135 }
137136 catch ( Exception ex )
138137 {
@@ -229,9 +228,9 @@ async Task MainLoop()
229228 LogWriter . WriteToFile ( "Setting secret..." ) ;
230229 try
231230 {
232- string sdr_url = "sdr://" + controllerPanel . Host + ":" + controllerPanel . Port + "/" ;
233- LogWriter . WriteToFile ( sdr_url ) ;
234- presence . Secrets . JoinSecret = sdr_url ;
231+ // string sdr_url = "sdr://" + controllerPanel.Host + ":" + controllerPanel.Port + "/";
232+ // LogWriter.WriteToFile(sdr_url);
233+ // presence.Secrets.JoinSecret = sdr_url;
235234 }
236235 catch ( Exception ex )
237236 {
0 commit comments