Libraries: let the main library be deleted from a device

Main can go once another library is synced to take over. The server keeps its default library, so this only removes the device's copy, and only Main's own files: its folder is the app data folder. A deleted Main stays deleted across launches, and a device always keeps at least one library, which is now checked before anything is deleted on the server.
This commit is contained in:
2026-10-30 20:47:08 -05:00
parent 349c1957f1
commit 58ff41a4c3
6 changed files with 170 additions and 23 deletions

View File

@@ -319,7 +319,9 @@ Deleting a synced library asks whether to **remove it from this device** (it
stays on the server and on your other devices, and this one stops downloading
it) or **delete it everywhere**. Other devices keep their copy of a library
deleted everywhere, marked as deleted from the server, until you remove it or
put it back. **Main** can be renamed but not deleted.
put it back. **Main** can be renamed, and deleted from a device once another
library there is synced; the sync server always keeps it, so it stays on your
other devices. A device always keeps at least one library.
Libraries' files live in the app-data dir: **Main** where the one library
always lived, the others under `libraries/`.