Skip to content

Commit

Permalink
ensure we always set an active mode
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@21091 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Nov 23, 2018
1 parent b1c6a9e commit f8e00f5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/xpra/client/gtk_base/client_launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -803,9 +803,12 @@ def pint(v):
def update_gui_from_config(self):
#mode:
mode = (self.config.mode or "").lower()
active = 0
for i,e in enumerate(self.get_connection_modes()):
if e.lower()==mode:
self.mode_combo.set_active(i)
active = i
break
self.mode_combo.set_active(active)
if self.config.encoding and self.encoding_combo:
index = self.encoding_combo.get_menu().encoding_to_index.get(self.config.encoding, -1)
log("setting encoding combo to %s / %s", self.config.encoding, index)
Expand Down

0 comments on commit f8e00f5

Please sign in to comment.