https://bugs.kde.org/show_bug.cgi?id=439789

            Bug ID: 439789
           Summary: Reorder shown currencies
           Product: krunner
           Version: unspecified
          Platform: Other
                OS: Other
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: converter
          Assignee: alexander.loh...@gmx.de
          Reporter: zrenf...@gmail.com
                CC: plasma-b...@kde.org
  Target Milestone: ---

https://old.reddit.com/r/kde/comments/oi7vkz/why_do_i_get_2_different_values_when_using/h4ua8q3/

The list is populated with KUnitConverter's `mostCommonUnits()` which is
populated with the hardcoded addCommonUnit() or addDefaultUnit().

*
https://github.com/KDE/kdeplasma-addons/blob/master/runners/converter/converterrunner.cpp#L186
* https://github.com/KDE/kunitconversion/blob/master/src/currency.cpp

It is then sorted by relevance, with the lowest value up top and the highest
(usually YEN) at the bottom.

*
https://github.com/KDE/kdeplasma-addons/blob/master/runners/converter/converterrunner.cpp#L108
* match.setRelevance(1.0 - std::abs(std::log10(outputValue.number())) / 50.0);

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to