mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-12-15 17:43:41 +00:00
small refactoring in matchers
This commit is contained in:
@ -25,11 +25,10 @@
|
||||
QHash<QString, AWPluginFormaterInterface *> AWPluginMatcherHDDUsed::keys(const QString &_source, const KSysGuard::Unit,
|
||||
const AWPluginMatcherSettings &_settings) const
|
||||
{
|
||||
auto device = AWPluginMatcher::device(_source);
|
||||
auto index = _settings.disk.indexOf(device);
|
||||
|
||||
auto index = AWPluginMatcher::index(_source, _settings.disk);
|
||||
if (index == -1)
|
||||
return {};
|
||||
|
||||
return {
|
||||
{QString("hddmb%1").arg(index), AWPluginFormatterMemoryMB::instance()},
|
||||
{QString("hddgb%1").arg(index), AWPluginFormatterMemoryGB::instance()},
|
||||
|
||||
Reference in New Issue
Block a user