Skip to content

Commit 7ffbae1

Browse files
authored
v2.6.0: Improved functioning (#6743)
1 parent b291237 commit 7ffbae1

File tree

3 files changed

+16
-9
lines changed

3 files changed

+16
-9
lines changed

Radio3.0@claudiux/files/Radio3.0@claudiux/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
### v2.6.0~20250106
2+
* Improved functioning (start-up).
3+
14
### v2.5.11~20250105
25
* Improved functioning.
36

Radio3.0@claudiux/files/Radio3.0@claudiux/applet.js

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1747,7 +1747,8 @@ class WebRadioReceiverAndRecorder extends TextIconApplet {
17471747
this.actor.set_opacity(255);
17481748
this.set_color();
17491749
}
1750-
this.actor.queue_relayout();
1750+
if (this.actor.get_stage() != null)
1751+
this.actor.queue_relayout();
17511752
}
17521753

17531754
set_radio_hashtable() {
@@ -4098,7 +4099,7 @@ class WebRadioReceiverAndRecorder extends TextIconApplet {
40984099
this.onShortcutChanged();
40994100
clearTimeout(to);
41004101
},
4101-
300
4102+
2100
41024103
);
41034104

41044105
if (this.desklet_is_activated)
@@ -4486,7 +4487,7 @@ class WebRadioReceiverAndRecorder extends TextIconApplet {
44864487
reloadExtension(UUID, Type.APPLET);
44874488
clearTimeout(to);
44884489
},
4489-
300
4490+
600
44904491
);
44914492
}
44924493

@@ -5888,24 +5889,27 @@ class WebRadioReceiverAndRecorder extends TextIconApplet {
58885889
if (maximize_vertically) {
58895890
var app = null;
58905891
var intervalId = null;
5891-
intervalId = setInterval(() => {
5892+
//~ intervalId = setInterval(() => {
5893+
intervalId = setTimeout(() => {
58925894
app = this.tracker.get_app_from_pid(pid);
58935895
if (app != null) {
58945896
let window = app.get_windows()[0];
58955897
this.settingsTab = tab;
58965898
//window.default_width = 1000;
58975899
//window.default_height = 600;
58985900
// window.resize(QUEUE, 1000, 600); // Obsolete.
5901+
58995902
window.maximize(VERTICAL);
59005903
window.activate(300);
59015904
this.settingsWindow = window;
59025905

5903-
clearInterval(intervalId);
5904-
return false;
5906+
//~ clearInterval(intervalId);
5907+
clearTimeout(intervalId);
5908+
//~ return false;
59055909
} else {
5906-
return true
5910+
//~ return true
59075911
}
5908-
}, 100);
5912+
}, 600);
59095913
}
59105914

59115915
// Returns the pid:

Radio3.0@claudiux/files/Radio3.0@claudiux/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"description": "The Ultimate Internet Radio Receiver & Recorder for Cinnamon",
33
"max-instances": 1,
4-
"version": "2.5.11",
4+
"version": "2.6.0",
55
"uuid": "Radio3.0@claudiux",
66
"name": "Radio3.0",
77
"author": "claudiux",

0 commit comments

Comments
 (0)