m-wynn / sddm_wynn-theme

Material Design sddm theme
Creative Commons Attribution Share Alike 4.0 International
24 stars 5 forks source link

Additional fallback to previous session #8

Closed EricKotato closed 6 years ago

EricKotato commented 6 years ago

Greetings.

There is a bug: when booting PC and trying to log in without choosing session, it selects first installed session instead of previous one. Similiar bug was described in #3.

Fix: before returning 0 (first installed session), try to return sessionModel.lastIndex, as it contains index of previous session.