Philipp Hörist pushed to branch master at gajim / gajim
Commits:
67f854f9 by André Apitzsch at 2020-07-03T17:08:57+02:00
MusicTrackListener: Catch all errors
Fixes #10164.
- - - - -
1 changed file:
- gajim/common/dbus/music_track.py
Changes:
=====================================
gajim/common/dbus/music_track.py
=====================================
@@ -85,10 +85,8 @@ class MusicTrackListener:
-1,
None)
except GLib.Error as error:
- if error.domain == 'g-dbus-error-quark':
- log.debug("Could not list names: %s", error.message)
- return
- raise
+ log.debug("Could not list names: %s", error.message)
+ return
for name in result[0]:
if name.startswith(MPRIS_PLAYER_PREFIX):
@@ -199,12 +197,10 @@ class MusicTrackListener:
-1,
None)
except GLib.Error as error:
- if error.domain == 'g-dbus-error-quark':
- log.debug("Could not enable music listener: %s", error.message)
- return None
- raise
- else:
- return self._get_music_info(result[0])
+ log.debug("Could not enable music listener: %s", error.message)
+ return None
+
+ return self._get_music_info(result[0])
def enable():
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/67f854f95dc1a102bec5d46e652298b2…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/67f854f95dc1a102bec5d46e652298b2…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
c647828e by lovetox at 2020-07-02T23:48:52+02:00
Determine correctly if block/unblock menuitem is shown
- - - - -
1 changed file:
- gajim/gui_menu_builder.py
Changes:
=====================================
gajim/gui_menu_builder.py
=====================================
@@ -397,7 +397,7 @@ control=None, gc_contact=None, is_anonymous=True):
if helpers.jid_is_blocked(account, jid):
block_menuitem.set_no_show_all(True)
block_menuitem.hide()
- if transport != 'jabber':
+ if transport not in ('jabber', None):
unblock_menuitem.set_no_show_all(True)
unblock_menuitem.hide()
unignore_menuitem.set_no_show_all(False)
@@ -409,7 +409,7 @@ control=None, gc_contact=None, is_anonymous=True):
else:
unblock_menuitem.set_no_show_all(True)
unblock_menuitem.hide()
- if transport != 'jabber':
+ if transport not in ('jabber', None):
block_menuitem.set_no_show_all(True)
block_menuitem.hide()
ignore_menuitem.set_no_show_all(False)
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/c647828e80c63c14e8e89335c9da8757…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/c647828e80c63c14e8e89335c9da8757…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
b7671671 by lovetox at 2020-07-02T22:48:28+02:00
Interface: Store password with correct backend
On account creation use the passwords module to store the password correctly
- - - - -
73d1350b by lovetox at 2020-07-02T22:50:39+02:00
Remove comment
- - - - -
30bfc9eb by lovetox at 2020-07-02T23:08:39+02:00
CertStore: Add cert to cache on add_certificate()
Otherwise the cert is only available after a restart
Fixes #10160
- - - - -
2 changed files:
- gajim/common/cert_store.py
- gajim/gui_interface.py
Changes:
=====================================
gajim/common/cert_store.py
=====================================
@@ -62,6 +62,7 @@ class CertificateStore:
def add_certificate(self, certificate):
log.info('Add certificate to trust store')
+ self._certs.append(certificate)
pem = certificate.props.certificate_pem
path = self._get_random_path()
write_file_async(path,
=====================================
gajim/gui_interface.py
=====================================
@@ -1521,7 +1521,6 @@ class Interface:
'%s@%s' % (username, domain))
config['hostname'] = domain
config['savepass'] = True
- config['password'] = password
config['anonymous_auth'] = anonymous
config['autoconnect'] = True
config['sync_with_global_status'] = True
@@ -1542,10 +1541,14 @@ class Interface:
for opt in config:
app.config.set_per('accounts', account, opt, config[opt])
+ # Password module depends on existing config
+ passwords.save_password(account, password)
+
app.css_config.refresh()
- # refresh accounts window
+
# Action must be added before account window is updated
app.app.add_account_actions(account)
+
window = get_app_window('AccountsWindow')
if window is not None:
window.add_account(account)
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/compare/3e1dcf0178bdd4fc1683e3287d2b8cf…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/compare/3e1dcf0178bdd4fc1683e3287d2b8cf…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
3e1dcf01 by lovetox at 2020-07-01T20:04:49+02:00
MamPreferences: Correctly display preference state for JID
- - - - -
1 changed file:
- gajim/gtk/mam_preferences.py
Changes:
=====================================
gajim/gtk/mam_preferences.py
=====================================
@@ -78,10 +78,10 @@ class MamPreferences(Gtk.ApplicationWindow, EventHelper):
self._ui.default_combo.set_active_id(result.default)
self._ui.preferences_store.clear()
for jid in result.always:
- self._ui.preferences_store.append((str(jid), 'Always'))
+ self._ui.preferences_store.append((str(jid), True))
for jid in result.never:
- self._ui.preferences_store.append((str(jid), 'Never'))
+ self._ui.preferences_store.append((str(jid), False))
@ensure_not_destroyed
def _mam_prefs_saved(self, result):
@@ -137,8 +137,8 @@ class MamPreferences(Gtk.ApplicationWindow, EventHelper):
never = []
default = self._ui.default_combo.get_active_id()
for item in self._ui.preferences_store:
- jid, type_ = item
- if type_ == 'Always':
+ jid, archive = item
+ if archive:
always.append(jid)
else:
never.append(jid)
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/3e1dcf0178bdd4fc1683e3287d2b8cf9…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/3e1dcf0178bdd4fc1683e3287d2b8cf9…
You're receiving this email because of your account on dev.gajim.org.