Skip to content

Commit

Permalink
v2.6.0: Improved functioning (#6743)
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiux authored Jan 6, 2025
1 parent b291237 commit 7ffbae1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 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 @@
### v2.6.0~20250106
* Improved functioning (start-up).

### v2.5.11~20250105
* Improved functioning.

Expand Down
20 changes: 12 additions & 8 deletions Radio3.0@claudiux/files/Radio3.0@claudiux/applet.js
Original file line number Diff line number Diff line change
Expand Up @@ -1747,7 +1747,8 @@ class WebRadioReceiverAndRecorder extends TextIconApplet {
this.actor.set_opacity(255);
this.set_color();
}
this.actor.queue_relayout();
if (this.actor.get_stage() != null)
this.actor.queue_relayout();
}

set_radio_hashtable() {
Expand Down Expand Up @@ -4098,7 +4099,7 @@ class WebRadioReceiverAndRecorder extends TextIconApplet {
this.onShortcutChanged();
clearTimeout(to);
},
300
2100
);

if (this.desklet_is_activated)
Expand Down Expand Up @@ -4486,7 +4487,7 @@ class WebRadioReceiverAndRecorder extends TextIconApplet {
reloadExtension(UUID, Type.APPLET);
clearTimeout(to);
},
300
600
);
}

Expand Down Expand Up @@ -5888,24 +5889,27 @@ class WebRadioReceiverAndRecorder extends TextIconApplet {
if (maximize_vertically) {
var app = null;
var intervalId = null;
intervalId = setInterval(() => {
//~ intervalId = setInterval(() => {
intervalId = setTimeout(() => {
app = this.tracker.get_app_from_pid(pid);
if (app != null) {
let window = app.get_windows()[0];
this.settingsTab = tab;
//window.default_width = 1000;
//window.default_height = 600;
// window.resize(QUEUE, 1000, 600); // Obsolete.

window.maximize(VERTICAL);
window.activate(300);
this.settingsWindow = window;

clearInterval(intervalId);
return false;
//~ clearInterval(intervalId);
clearTimeout(intervalId);
//~ return false;
} else {
return true
//~ return true
}
}, 100);
}, 600);
}

// Returns the pid:
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.5.11",
"version": "2.6.0",
"uuid": "Radio3.0@claudiux",
"name": "Radio3.0",
"author": "claudiux",
Expand Down

0 comments on commit 7ffbae1

Please sign in to comment.