mirror of
https://github.com/JustinZeus/Wholphin.git
synced 2026-07-08 23:51:21 +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(),
|
||||
)
|
||||
if (current != null) {
|
||||
// Restored
|
||||
navigationManager.navigateTo(SetupDestination.AppContent(current))
|
||||
if (current.user.hasPin) {
|
||||
navigationManager.navigateTo(SetupDestination.UserList(current.server))
|
||||
} else {
|
||||
// Restored
|
||||
navigationManager.navigateTo(SetupDestination.AppContent(current))
|
||||
}
|
||||
} else {
|
||||
// Did not restore
|
||||
navigationManager.navigateTo(SetupDestination.ServerList)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue