Philipp Hörist pushed to branch master at gajim / gajim


Commits:
44cbd2ff by Philipp Hörist at 2023-03-11T19:55:05+01:00
fix: Migration: Don’t fail on color setting migration

Fixes #11426

- - - - -


1 changed file:

- gajim/common/optparser.py


Changes:

=====================================
gajim/common/optparser.py
=====================================
@@ -219,7 +219,7 @@ def update_config_to_1195(self):
                 account_string = '%s@%s' % (username, domain)
                 # We cannot get the preferred theme at this point
                 background = (1, 1, 1)
-                col_r, col_g, col_b = text_to_color(account_string, background)
+                col_r, col_g, col_b = text_to_color(account_string, 100, 40)
                 rgba = Gdk.RGBA(red=col_r, green=col_g, blue=col_b)
                 color = rgba.to_string()
                 app.config.set_per('accounts', account, 'account_color', color)



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/44cbd2ffa469f9f3c2ba0b51fc4aa5c49c4c8521

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/44cbd2ffa469f9f3c2ba0b51fc4aa5c49c4c8521
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to