mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-12-15 09:33:41 +00:00
small refactoring in matchers
This commit is contained in:
@ -25,11 +25,10 @@
|
||||
QHash<QString, AWPluginFormaterInterface *> AWPluginMatcherHDD::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("hdd%1").arg(index), AWPluginFormatterFloat::instance()}};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user