I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit f921a594 authored by aargh's avatar aargh
Browse files

add database reload

parent e0dfdf0c
No related branches found
No related tags found
No related merge requests found
......@@ -97,3 +97,8 @@ func (db *database) nameFromChanIdentHash(s string) string {
}
return "Unknown"
}
func (db *database) reload() {
db.loadChannels()
db.loadMessages()
db.loadAvatars()
}
......@@ -34,9 +34,7 @@ func NewGUI() *GUI {
func (client *GUI) Start(path string) {
client.db = NewDatabase()
client.db.openDB(path)
client.db.loadChannels()
client.db.loadMessages()
client.db.loadAvatars()
client.db.reload()
a := app.New()
......@@ -76,9 +74,7 @@ func (client *GUI) fetch(fetch bool) {
if fetch {
f := fetcher.New("http://localhost:8080/", dir, 60, 50)
f.RemoteFetch()
client.db.loadChannels()
client.db.loadMessages()
client.db.loadAvatars()
client.db.reload()
client.repaint()
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment