deviantfero / wpgtk

:flower_playing_cards: a colorscheme, wallpaper and template manager for *nix
http://deviantfero.github.io/wpgtk/
GNU General Public License v2.0
2.05k stars 49 forks source link

Avoid future errors and refactor #302

Closed BoolmanO closed 4 months ago

BoolmanO commented 4 months ago

The previous method of comparing versions is bad. It is not able to work in borderline cases, for example, with version 10.1.2, 1 will be compared with 3, 0 with 3 and 1 with 0, because there is iteration over symbols without concatenation...

A new function has also been added to util.py, i think it can be useful in many places in app.

Also fixed version comparison in the __check_is_pywal16cols, because in previous impl it can return True if smth like 2.4.3 used.

Sorry for this mistakes, i screwed up a little.