mirror of
https://github.com/morgan9e/gnome-shell-extension-freon
synced 2026-04-15 00:44:22 +09:00
Required changes for custom SmartCtl for NVME.
This commit is contained in:
@@ -16,6 +16,7 @@ const AticonfigUtil = Me.imports.aticonfigUtil;
|
||||
const NvidiaUtil = Me.imports.nvidiaUtil;
|
||||
const HddtempUtil = Me.imports.hddtempUtil;
|
||||
const SensorsUtil = Me.imports.sensorsUtil;
|
||||
const smartctlUtil = Me.imports.smartctlUtil;
|
||||
const BumblebeeNvidiaUtil = Me.imports.bumblebeeNvidiaUtil;
|
||||
const FreonItem = Me.imports.freonItem;
|
||||
|
||||
@@ -197,6 +198,9 @@ var FreonMenuButton = new Lang.Class({
|
||||
// this._updateDisplay(); we cannot change actor in background thread #74
|
||||
}));
|
||||
break;
|
||||
case 'smartctl':
|
||||
this._utils.disks = new smartctlUtil.smartctlUtil();
|
||||
break;
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@@ -69,7 +69,7 @@ var FreonPrefsWidget = new GObject.Class({
|
||||
help : _("Works if you have more than three voltage sensors")});
|
||||
|
||||
this._addComboBox({
|
||||
items : {none : 'None', hddtemp : 'Hddtemp', udisks2 : 'UDisks2'},
|
||||
items : {none : 'None', hddtemp : 'Hddtemp', udisks2 : 'UDisks2', smartctl : 'smartctl'},
|
||||
key: 'drive-utility', y : i, x : 0,
|
||||
label: _('HDD/SSD Temperature Utility')
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user