bolt: add nav suffix for readonly connections

This commit is contained in:
mappu 2024-06-28 11:52:50 +12:00
parent ce43f5765c
commit 5b8883d31a

View File

@ -130,6 +130,9 @@ func (f *TMainForm) boltAddDatabaseFromFile(path string, readonly bool) {
displayName: filepath.Base(path),
db: db,
}
if readonly {
ld.displayName += " (read-only)"
}
ld.nav = f.Buckets.Items().Add(nil, ld.displayName)
ld.nav.SetHasChildren(true) // dynamically populate in OnNavExpanding