Skip to content

Commit

Permalink
if we don't have any sessions, don't show the password box
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@24690 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Dec 10, 2019
1 parent b1c04f1 commit ab74558
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/xpra/client/gtk_base/sessions_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def __init__(self, options, title="Xpra Session Browser"):
self.show()

def show(self):
self.show_all()
super().show()
def show():
force_focus()
self.present()
Expand Down Expand Up @@ -127,10 +127,6 @@ def update(self):
return True

def populate(self):
if self.local_info_cache:
self.password_box.show()
else:
self.password_box.hide()
self.populate_table()

def poll_local_sessions(self):
Expand Down Expand Up @@ -219,7 +215,9 @@ def populate_table(self):
self.vbox.add(self.table)
self.table.show()
self.set_size_request(440, 200)
self.password_box.hide()
return
self.password_box.show()
self.set_size_request(-1, -1)
tb = TableBuilder(1, 6, False)
labels = [Gtk.Label(x) for x in (
Expand Down

0 comments on commit ab74558

Please sign in to comment.