Development discussion of WireGuard
 help / color / mirror / Atom feed
From: "Jason A. Donenfeld" <Jason@zx2c4.com>
To: wireguard_mailing_list_user@stdmail.de
Cc: WireGuard mailing list <wireguard@lists.zx2c4.com>
Subject: Re: Feature request - Number of tunnel entries in root of tray icon context menu
Date: Tue, 28 Sep 2021 17:16:13 -0600	[thread overview]
Message-ID: <CAHmME9pnqk2Z_G3+SYzR4sYRuQQdOzJfncVYYXF7_Nigxc1fDw@mail.gmail.com> (raw)
In-Reply-To: <163277858699.7.10950010429724590941.14337061@stdmail.de>

Hi,

I don't want to add a knob for this, but I would take a patch that
uses a smarter heuristic than just "10". Feel free to send patches to
the list. The code in question is here:

https://git.zx2c4.com/wireguard-windows/tree/ui/tray.go#n225

For example, if you can calculate the number of entries that can fit
on the vertical height of the screen, maybe take a third? Or two
fifths?

Jason

  reply	other threads:[~2021-09-28 23:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-27 21:36 wireguard_mailing_list_user
2021-09-28 23:16 ` Jason A. Donenfeld [this message]
     [not found] ` <163287098886.7.7062947333110889290.14414570@simplelogin.co>
2021-09-30 11:09   ` wireguard_mailing_list_user
2021-09-30 16:41     ` Jason A. Donenfeld

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAHmME9pnqk2Z_G3+SYzR4sYRuQQdOzJfncVYYXF7_Nigxc1fDw@mail.gmail.com \
    --to=jason@zx2c4.com \
    --cc=wireguard@lists.zx2c4.com \
    --cc=wireguard_mailing_list_user@stdmail.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).