Skip to content

Commit

Permalink
add info button to url entry
Browse files Browse the repository at this point in the history
  • Loading branch information
mrvladus committed May 10, 2024
1 parent 0c8d196 commit 8fd531a
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions errands/widgets/preferences.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,26 @@ def _build_ui(self) -> None:
title=_("Server URL"),
)
GSettings.bind("sync-url", self.sync_url, "text")
self.sync_url.add_suffix(
Gtk.MenuButton(
valign=Gtk.Align.CENTER,
icon_name="errands-info-symbolic",
tooltip_text=_("Info"),
css_classes=["flat"],
popover=Gtk.Popover(
child=Gtk.Label(
label=_(
"URL needs to include protocol, like <b>http://</b> or <b>https://</b>. If you have problems with connection - try to change protocol first."
),
use_markup=True,
lines=5,
wrap_mode=0,
wrap=True,
max_width_chars=30,
)
),
)
)
sync_group.add(self.sync_url)
# Username
self.sync_username = Adw.EntryRow(
Expand Down

0 comments on commit 8fd531a

Please sign in to comment.