Skip to content
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.

Commit

Permalink
get rid of debounced saveBackup(), it was broken, use immediatelySave…
Browse files Browse the repository at this point in the history
…Backup() everywhere.
  • Loading branch information
fiatjaf committed Dec 31, 2022
1 parent df292ee commit 696b27d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/src/main/scala/SetupActivity.scala
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ class SetupActivity extends BaseActivity {
)
// Delete user-selected backup file while we can here and make an app-owned backup shortly
DocumentFile.fromSingleUri(this, resultData.getData).delete
WalletApp.saveBackup(())
WalletApp.immediatelySaveBackup()
proceedWithMnemonics(mnemonics)

case Failure(exc) =>
Expand Down
3 changes: 1 addition & 2 deletions app/src/main/scala/WalletApp.scala
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ object WalletApp {
catch none
}
})
val saveBackup = debounce[Unit](_ => immediatelySaveBackup, 4.seconds)

final val FIAT_CODE = "fiatCode"
final val BTC_DENOM = "btcDenom"
Expand Down Expand Up @@ -210,7 +209,7 @@ object WalletApp {
override def put(
data: PersistentChannelData
): PersistentChannelData = {
saveBackup(())
immediatelySaveBackup()
super.put(data)
}
}
Expand Down

0 comments on commit 696b27d

Please sign in to comment.