Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Status Bar Icon with Shortcuts to Start/Stop the Server. #103

Draft
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

davideruisi
Copy link

@davideruisi davideruisi commented Jul 29, 2021

Issue

Description

This PR is an experiment to add the status bar icon on the right side of the top macOS bar.

We have tried two different approaches:

  • Embedding a SwiftUI View inside the status item to recreate the menu. This solution has the advantage to use the appEnvironment and fetch the current state of the server to enable/disable Start and Stop server interactions when not available. This solution shows some bug when clicking the buttons when the app is in background.
  • Using the old AppKit way of creating items inside the menu and linking an interaction for each item. This solution does not present the aforementioned bug, but the appEnvironment cannot be used.

@davideruisi davideruisi linked an issue Jul 29, 2021 that may be closed by this pull request
@FabrizioBrancati FabrizioBrancati added the feature Feature pull request label Aug 27, 2021
@FabrizioBrancati FabrizioBrancati changed the base branch from main to develop September 2, 2021 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Menu Bar Icon
2 participants