mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
Reordered identity attributes in caps cache for readability
This commit is contained in:
parent
e88cc0079a
commit
ab9c3ac330
@ -83,15 +83,15 @@ caps_add(const char * const ver, Capabilities *caps)
|
|||||||
{
|
{
|
||||||
gboolean cached = g_key_file_has_group(cache, ver);
|
gboolean cached = g_key_file_has_group(cache, ver);
|
||||||
if (!cached) {
|
if (!cached) {
|
||||||
|
if (caps->name) {
|
||||||
|
g_key_file_set_string(cache, ver, "name", caps->name);
|
||||||
|
}
|
||||||
if (caps->category) {
|
if (caps->category) {
|
||||||
g_key_file_set_string(cache, ver, "category", caps->category);
|
g_key_file_set_string(cache, ver, "category", caps->category);
|
||||||
}
|
}
|
||||||
if (caps->type) {
|
if (caps->type) {
|
||||||
g_key_file_set_string(cache, ver, "type", caps->type);
|
g_key_file_set_string(cache, ver, "type", caps->type);
|
||||||
}
|
}
|
||||||
if (caps->name) {
|
|
||||||
g_key_file_set_string(cache, ver, "name", caps->name);
|
|
||||||
}
|
|
||||||
if (caps->software) {
|
if (caps->software) {
|
||||||
g_key_file_set_string(cache, ver, "software", caps->software);
|
g_key_file_set_string(cache, ver, "software", caps->software);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user