mirror of
https://github.com/JustinZeus/Wholphin.git
synced 2026-07-09 08:01:20 +02:00
Fixes not requiring PIN if the app is forced closed (#773)
## Description Checks if a PIN is needed when restoring the previous session ### Related issues Addresses https://github.com/damontecres/Wholphin/issues/321#issuecomment-3797445005
This commit is contained in:
parent
03871579f5
commit
7c985ae2ac
1 changed files with 6 additions and 2 deletions
|
|
@ -417,8 +417,12 @@ class MainActivityViewModel
|
||||||
prefs.currentUserId?.toUUIDOrNull(),
|
prefs.currentUserId?.toUUIDOrNull(),
|
||||||
)
|
)
|
||||||
if (current != null) {
|
if (current != null) {
|
||||||
// Restored
|
if (current.user.hasPin) {
|
||||||
navigationManager.navigateTo(SetupDestination.AppContent(current))
|
navigationManager.navigateTo(SetupDestination.UserList(current.server))
|
||||||
|
} else {
|
||||||
|
// Restored
|
||||||
|
navigationManager.navigateTo(SetupDestination.AppContent(current))
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
// Did not restore
|
// Did not restore
|
||||||
navigationManager.navigateTo(SetupDestination.ServerList)
|
navigationManager.navigateTo(SetupDestination.ServerList)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue