Profiles system stability improvements and fixes, qt5 works.
Now everything that uses Profiles from cache will also use it's mutex to lock access. This brings more stability improvements :). Also fixed profile update in database. Qt5 interface is now translated (kinda).
This commit is contained in:
@@ -363,12 +363,14 @@ func (o *OptionsDialog) loadProfiles(data map[string]string) {
|
||||
fmt.Println("Loading profiles...")
|
||||
o.profiles_list_store.Clear()
|
||||
|
||||
ctx.Cache.ProfilesMutex.Lock()
|
||||
for _, p := range ctx.Cache.Profiles {
|
||||
var iter gtk.TreeIter
|
||||
o.profiles_list_store.Append(&iter)
|
||||
o.profiles_list_store.Set(&iter, 0, p.Profile.Name)
|
||||
o.profiles_list_store.Set(&iter, 1, p.Profile.Version)
|
||||
}
|
||||
ctx.Cache.ProfilesMutex.Unlock()
|
||||
}
|
||||
|
||||
func (o *OptionsDialog) saveAppearance() {
|
||||
|
Reference in New Issue
Block a user