@@ -1088,7 +1088,7 @@ class WebRadioReceiverAndRecorder extends TextIconApplet {
10881088 constructor ( orientation , panel_height , instance_id ) {
10891089 super ( orientation , panel_height , instance_id ) ;
10901090
1091- // this.install_desklet() ;
1091+ this . desklet_is_activated = false ;
10921092
10931093 this . rec_folder = "file://" + RADIO30_MUSIC_DIR ;
10941094
@@ -1313,17 +1313,6 @@ class WebRadioReceiverAndRecorder extends TextIconApplet {
13131313 this . r30previousMonitor = null ;
13141314 this . r30previousMonitorId = null ;
13151315
1316- // Run all monitors:
1317- this . on_network_monitoring_changed ( ) ;
1318- this . monitor_mpv_title ( ) ;
1319- this . monitor_jobs_dir ( ) ;
1320- this . monitor_rec_folder ( ) ;
1321- this . monitor_r30stop ( ) ;
1322- this . monitor_r30next ( ) ;
1323- this . monitor_r30previous ( ) ;
1324-
1325- // Connect signals:
1326- this . _connect_signals ( ) ;
13271316
13281317 //title_obj.watch('prop', function(value){
13291318 //this._on_mpv_title_changed();
@@ -4051,6 +4040,18 @@ class WebRadioReceiverAndRecorder extends TextIconApplet {
40514040 }
40524041
40534042 on_applet_added_to_panel ( ) {
4043+ // Run all monitors:
4044+ this . on_network_monitoring_changed ( ) ;
4045+ this . monitor_mpv_title ( ) ;
4046+ this . monitor_jobs_dir ( ) ;
4047+ this . monitor_rec_folder ( ) ;
4048+ this . monitor_r30stop ( ) ;
4049+ this . monitor_r30next ( ) ;
4050+ this . monitor_r30previous ( ) ;
4051+
4052+ // Connect signals:
4053+ this . _connect_signals ( ) ;
4054+
40544055 // Install or update translations, if any:
40554056 if ( ! are_translations_installed ( ) ) install_translations ( ) ;
40564057
0 commit comments