MeanEYE / Sunflower

Small and highly customizable twin-panel file manager for Linux with support for plugins.
GNU General Public License v3.0
428 stars 42 forks source link

Hide decimal places for byte sized values #469

Closed joshas closed 3 years ago

joshas commented 3 years ago

Not really sure about this solution, used a template variable for better readability, as single character change quickly got lost in longer lines. Fixes #146

MeanEYE commented 3 years ago

I think solution is fine, but I think I'd prefer shorthand way of writing this. Such as template = '...' if name != 'B' else '...'.