quickSettings: Add a getter for the deprecated label property
Since the `label` property was deprecated there have already been reports of fatal errors for some extensions, so add a deprecated getter with a warning to ease migration. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2663>
This commit is contained in:
parent
7520323e15
commit
5449c3e83e
@ -124,6 +124,11 @@ var QuickToggle = GObject.registerClass({
|
|||||||
null);
|
null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get label() {
|
||||||
|
console.warn('Trying to get label from QuickToggle. Use title instead.');
|
||||||
|
return this.title;
|
||||||
|
}
|
||||||
|
|
||||||
set label(label) {
|
set label(label) {
|
||||||
console.warn('Trying to set label on QuickToggle. Use title instead.');
|
console.warn('Trying to set label on QuickToggle. Use title instead.');
|
||||||
this.title = label;
|
this.title = label;
|
||||||
|
Loading…
Reference in New Issue
Block a user