trayscale icon indicating copy to clipboard operation
trayscale copied to clipboard

cmd/trayscale: clean up data flow

Open DeedleFake opened this issue 2 years ago • 0 comments

Thanks to the Prefs() rework from #18, data flow from Tailscale to the UI is a tad strange. It mostly comes from the status, but a few items are from prefs instead, and those are being pulled on demand during the update. This is rather odd, so here's the current plan to fix it:

  • [ ] Move status fetching into the GTK event and rework polling loop to just be a simple timer that fires the custom GTK update event.
  • [ ] Poll prefs at the beginning of the event.
  • [ ] Manually update switches directly via return values from methods.

DeedleFake avatar Sep 15 '22 16:09 DeedleFake