Closed wiiznokes closed 4 weeks ago
This pr remove the oddiness of the default_paths function and Iter, which were processing path in reverse order. I was causing problem in the default_paths function itself, but also in cosmic-applet (https://github.com/pop-os/cosmic-applets/blob/0b536349cb1a27b91e3ab0650931cd531f536ebd/cosmic-panel-button/src/main.rs#L157) .
default_paths
Iter
Also, i added an helper function entries on Iter. Probably better than the previous from_paths function. And fixed the code in the README
entries
from_paths
This pr remove the oddiness of the
default_paths
function andIter
, which were processing path in reverse order. I was causing problem in thedefault_paths
function itself, but also in cosmic-applet (https://github.com/pop-os/cosmic-applets/blob/0b536349cb1a27b91e3ab0650931cd531f536ebd/cosmic-panel-button/src/main.rs#L157) .Also, i added an helper function
entries
onIter
. Probably better than the previousfrom_paths
function. And fixed the code in the README