bolt: add nav suffix for readonly connections
This commit is contained in:
parent
ce43f5765c
commit
5b8883d31a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user