Skip to content

Commit

Permalink
Radio3.0 v2.7.8: Improves applet startup (#6853)
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiux authored Feb 5, 2025
1 parent 40b6ba1 commit eacc44a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 13 deletions.
3 changes: 3 additions & 0 deletions Radio3.0@claudiux/files/Radio3.0@claudiux/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### 2.7.8~20250205
* Improves applet startup.

### 2.7.7~20250204
* Code improvement.

Expand Down
25 changes: 13 additions & 12 deletions Radio3.0@claudiux/files/Radio3.0@claudiux/applet.js
Original file line number Diff line number Diff line change
Expand Up @@ -1088,7 +1088,7 @@ class WebRadioReceiverAndRecorder extends TextIconApplet {
constructor(orientation, panel_height, instance_id) {
super(orientation, panel_height, instance_id);

//this.install_desklet();
this.desklet_is_activated = false;

this.rec_folder = "file://" + RADIO30_MUSIC_DIR;

Expand Down Expand Up @@ -1313,17 +1313,6 @@ class WebRadioReceiverAndRecorder extends TextIconApplet {
this.r30previousMonitor = null;
this.r30previousMonitorId = null;

// Run all monitors:
this.on_network_monitoring_changed();
this.monitor_mpv_title();
this.monitor_jobs_dir();
this.monitor_rec_folder();
this.monitor_r30stop();
this.monitor_r30next();
this.monitor_r30previous();

// Connect signals:
this._connect_signals();

//title_obj.watch('prop', function(value){
//this._on_mpv_title_changed();
Expand Down Expand Up @@ -4051,6 +4040,18 @@ class WebRadioReceiverAndRecorder extends TextIconApplet {
}

on_applet_added_to_panel() {
// Run all monitors:
this.on_network_monitoring_changed();
this.monitor_mpv_title();
this.monitor_jobs_dir();
this.monitor_rec_folder();
this.monitor_r30stop();
this.monitor_r30next();
this.monitor_r30previous();

// Connect signals:
this._connect_signals();

// Install or update translations, if any:
if (!are_translations_installed()) install_translations();

Expand Down
2 changes: 1 addition & 1 deletion Radio3.0@claudiux/files/Radio3.0@claudiux/metadata.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"description": "The Ultimate Internet Radio Receiver & Recorder for Cinnamon",
"max-instances": 1,
"version": "2.7.7",
"version": "2.7.8",
"uuid": "Radio3.0@claudiux",
"name": "Radio3.0",
"author": "claudiux",
Expand Down

0 comments on commit eacc44a

Please sign in to comment.