mirror of
https://github.com/aclist/dztui.git
synced 2026-08-28 18:57:12 +02:00
fix: hide popover after initial render
This commit is contained in:
parent
9bc94f7587
commit
04e0b7ae55
@ -160,8 +160,12 @@ class FavPanel(Gtk.Frame):
|
|||||||
|
|
||||||
grid = Gtk.Grid(margin=10, vexpand=False, column_spacing=15, row_spacing=5)
|
grid = Gtk.Grid(margin=10, vexpand=False, column_spacing=15, row_spacing=5)
|
||||||
grid.attach(scrollable_label, 0, 0, 3, ROWS)
|
grid.attach(scrollable_label, 0, 0, 3, ROWS)
|
||||||
grid.attach_next_to(self.copy_button, scrollable_label, Gtk.PositionType.RIGHT, COLS, ROWS)
|
grid.attach_next_to(
|
||||||
grid.attach_next_to(self.fav_button, self.copy_button, Gtk.PositionType.RIGHT, COLS, ROWS)
|
self.copy_button, scrollable_label, Gtk.PositionType.RIGHT, COLS, ROWS
|
||||||
|
)
|
||||||
|
grid.attach_next_to(
|
||||||
|
self.fav_button, self.copy_button, Gtk.PositionType.RIGHT, COLS, ROWS
|
||||||
|
)
|
||||||
|
|
||||||
self.add(grid)
|
self.add(grid)
|
||||||
|
|
||||||
@ -230,9 +234,11 @@ class AddPanel(Gtk.Frame):
|
|||||||
margin_end=10,
|
margin_end=10,
|
||||||
)
|
)
|
||||||
self.pop.add(self.pop_label)
|
self.pop.add(self.pop_label)
|
||||||
|
# NOTE: render once to draw text in bubble
|
||||||
self.pop.show_all()
|
self.pop.show_all()
|
||||||
self.pop.set_margin_start(10)
|
self.pop.set_margin_start(10)
|
||||||
self.pop.set_relative_to(self.entry)
|
self.pop.set_relative_to(self.entry)
|
||||||
|
self.pop.popdown()
|
||||||
|
|
||||||
def _on_duplicate_server(self, emitter: "Emitter") -> None:
|
def _on_duplicate_server(self, emitter: "Emitter") -> None:
|
||||||
self.pop.popup()
|
self.pop.popup()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user