Required changes for custom SmartCtl for NVME.

This commit is contained in:
Erdem U. Altinyurt
2019-01-06 18:53:16 +03:00
parent bfebb8d8b9
commit 8ecea4e639
2 changed files with 5 additions and 1 deletions

View File

@@ -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;
}
},

View File

@@ -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')
});