Skip to content
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.

When closing dat-desktop and re-opening all dats in the list are lost #298

Closed
okdistribute opened this issue Mar 14, 2017 · 3 comments
Closed

Comments

@okdistribute
Copy link
Collaborator

okdistribute commented Mar 14, 2017

Can confirm on my 1.0.3 build that was upgraded from 1.0.2. Can't seem to replicate with a local development version.

@okdistribute okdistribute added this to the 2017-03-14 milestone Mar 14, 2017
@juliangruber
Copy link
Collaborator

I have seen this too, and didn't trust it first. Taking a look!

@juliangruber
Copy link
Collaborator

Somehow

cat ~/.dat-desktop/dats.json 
{}

straight after you quit the app. While running, it eg said

{
  "79cf7ecc9baf627642099542b3714bbef51810da9f541eabb761029969d0161b": "{\"dir\":\"/Users/julian/Downloads/dat/79cf7ecc9baf627642099542b3714bbef51810da9f541eabb761029969d0161b\",\"opts\":{\"key\":\"79cf7ecc9baf627642099542b3714bbef51810da9f541eabb761029969d0161b\",\"watch\":true,\"resume\":true,\"ignoreHidden\":true,\"compareFileContent\":true}}"
}

@juliangruber
Copy link
Collaborator

juliangruber commented Mar 16, 2017

Ah yes I see now. When you .close() an archive in multidat, it will also be removed from the db. Fixing it my only calling dat.close()

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants