Repository navigation
Commit 542e27f
committed
fix: the Vaults sheet marks the open vault by its folder, and shows each vault's own name
Found while driving the same change on the iPhone simulator. The Vaults
sheet lists folders, and its rename and delete act on the folder, but it
marked the open vault by comparing an entry's folder name with the name the
shell snapshot shows. Once a vault carries a display name (ZenNotes
#692, core 2.56.x) those are different strings, so a renamed vault lost
its check mark, its row became tappable, and the manage view offered Delete
and Rename for the vault that was open.
The sheet now asks the bridge for the open vault's folder name
(`currentVaultFolderName`, the MobileVault it holds) and compares that,
the external-root clause unchanged; the snapshot's name is only what the
open vault's row shows. The other rows show the name each vault goes by,
read from its own vault.json (one small read per local or cloud folder, no
download wait for an evicted cloud file, which keeps its folder name), and
the manage view names the folder beside a display name that differs, so a
rename or delete is understood to act on the folder. `MobileVaultEntry`
gains `displayName`; `name` stays the folder, which every management call
keys on.1 parent 2f2d8f6 commit 542e27f
3 files changed
Lines changed: 64 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
| |||
182 | 183 | | |
183 | 184 | | |
184 | 185 | | |
| 186 | + | |
| 187 | + | |
185 | 188 | | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
186 | 192 | | |
187 | 193 | | |
188 | 194 | | |
| |||
226 | 232 | | |
227 | 233 | | |
228 | 234 | | |
229 | | - | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
230 | 242 | | |
231 | 243 | | |
232 | 244 | | |
233 | 245 | | |
234 | 246 | | |
235 | 247 | | |
| 248 | + | |
236 | 249 | | |
237 | 250 | | |
238 | 251 | | |
239 | | - | |
| 252 | + | |
| 253 | + | |
240 | 254 | | |
241 | 255 | | |
242 | 256 | | |
| |||
458 | 472 | | |
459 | 473 | | |
460 | 474 | | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
461 | 487 | | |
462 | 488 | | |
463 | 489 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
428 | 428 | | |
429 | 429 | | |
430 | 430 | | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
431 | 448 | | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | | - | |
| 449 | + | |
437 | 450 | | |
438 | 451 | | |
439 | 452 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
280 | 281 | | |
281 | 282 | | |
282 | 283 | | |
283 | | - | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
284 | 292 | | |
285 | 293 | | |
286 | 294 | | |
| |||
305 | 313 | | |
306 | 314 | | |
307 | 315 | | |
308 | | - | |
309 | | - | |
| 316 | + | |
| 317 | + | |
310 | 318 | | |
| 319 | + | |
| 320 | + | |
311 | 321 | | |
312 | 322 | | |
313 | 323 | | |
| |||
433 | 443 | | |
434 | 444 | | |
435 | 445 | | |
436 | | - | |
| 446 | + | |
437 | 447 | | |
438 | 448 | | |
439 | 449 | | |
440 | 450 | | |
441 | 451 | | |
442 | | - | |
| 452 | + | |
443 | 453 | | |
444 | 454 | | |
445 | 455 | | |
| |||
523 | 533 | | |
524 | 534 | | |
525 | 535 | | |
526 | | - | |
| 536 | + | |
| 537 | + | |
527 | 538 | | |
528 | 539 | | |
529 | 540 | | |
| |||
0 commit comments