[gnome] Fix version for gjsosk and gsconnect, add impatience
This commit is contained in:
@ -2,17 +2,15 @@
|
||||
//
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
'use strict';
|
||||
import Gio from 'gi://Gio';
|
||||
import GLib from 'gi://GLib';
|
||||
import GObject from 'gi://GObject';
|
||||
|
||||
const Gio = imports.gi.Gio;
|
||||
const GLib = imports.gi.GLib;
|
||||
const GObject = imports.gi.GObject;
|
||||
|
||||
const Components = imports.service.components;
|
||||
const PluginBase = imports.service.plugin;
|
||||
import * as Components from '../components/index.js';
|
||||
import Plugin from '../plugin.js';
|
||||
|
||||
|
||||
var Metadata = {
|
||||
export const Metadata = {
|
||||
label: _('Battery'),
|
||||
description: _('Exchange battery information'),
|
||||
id: 'org.gnome.Shell.Extensions.GSConnect.Plugin.Battery',
|
||||
@ -32,9 +30,9 @@ var Metadata = {
|
||||
* Battery Plugin
|
||||
* https://github.com/KDE/kdeconnect-kde/tree/master/plugins/battery
|
||||
*/
|
||||
var Plugin = GObject.registerClass({
|
||||
const BatteryPlugin = GObject.registerClass({
|
||||
GTypeName: 'GSConnectBatteryPlugin',
|
||||
}, class Plugin extends PluginBase.Plugin {
|
||||
}, class BatteryPlugin extends Plugin {
|
||||
|
||||
_init(device) {
|
||||
super._init(device, 'battery');
|
||||
@ -431,3 +429,5 @@ var Plugin = GObject.registerClass({
|
||||
super.destroy();
|
||||
}
|
||||
});
|
||||
|
||||
export default BatteryPlugin;
|
||||
|
||||
Reference in New Issue
Block a user