[PR #53] [MERGED] Improve menu bar icon behavior to act as smart toggle #64

Closed
opened 2026-03-03 16:43:35 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/nickustinov/itsypad-macos/pull/53
Author: @nickustinov
Created: 2/24/2026
Status: Merged
Merged: 2/24/2026
Merged by: @nickustinov

Base: mainHead: fix/menubar-smart-toggle


📝 Commits (2)

  • d2874c9 Improve menu bar icon behavior to act as smart toggle
  • fa4e917 Show hide/show label in menu bar based on window state

📊 Changes

4 files changed (+31 additions, -7 deletions)

View changed files

📝 CHANGELOG.md (+5 -0)
📝 Sources/App/AppDelegate.swift (+13 -5)
📝 Sources/Resources/Localizable.xcstrings (+11 -0)
📝 project.yml (+2 -2)

📄 Description

Summary

The menu bar icon now intelligently switches between showing the window and displaying the menu based on window state:
• When Itsypad is hidden or inactive: clicking shows the window directly
• When Itsypad is visible and active: clicking shows the menu

This provides a more intuitive interaction pattern where the most common action (showing the app) requires fewer clicks.

Changes

• Modified statusItemClicked to check window visibility and key status before deciding whether to show the window or the menu
• Bumped version to 1.9.5
• Updated CHANGELOG.md

Test plan

  • Click menu bar icon when window is hidden → window appears
  • Click menu bar icon when window is visible but not active → window becomes active
  • Click menu bar icon when window is active → menu appears
  • Verify all menu items still work correctly

Fixes #47

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/nickustinov/itsypad-macos/pull/53 **Author:** [@nickustinov](https://github.com/nickustinov) **Created:** 2/24/2026 **Status:** ✅ Merged **Merged:** 2/24/2026 **Merged by:** [@nickustinov](https://github.com/nickustinov) **Base:** `main` ← **Head:** `fix/menubar-smart-toggle` --- ### 📝 Commits (2) - [`d2874c9`](https://github.com/nickustinov/itsypad-macos/commit/d2874c9fafce9b63d42bd56f2038a840b2770383) Improve menu bar icon behavior to act as smart toggle - [`fa4e917`](https://github.com/nickustinov/itsypad-macos/commit/fa4e917efab818e6e2f75c01c32fbab7ec7e835d) Show hide/show label in menu bar based on window state ### 📊 Changes **4 files changed** (+31 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+5 -0) 📝 `Sources/App/AppDelegate.swift` (+13 -5) 📝 `Sources/Resources/Localizable.xcstrings` (+11 -0) 📝 `project.yml` (+2 -2) </details> ### 📄 Description ## Summary The menu bar icon now intelligently switches between showing the window and displaying the menu based on window state: • When Itsypad is hidden or inactive: clicking shows the window directly • When Itsypad is visible and active: clicking shows the menu This provides a more intuitive interaction pattern where the most common action (showing the app) requires fewer clicks. ## Changes • Modified `statusItemClicked` to check window visibility and key status before deciding whether to show the window or the menu • Bumped version to 1.9.5 • Updated CHANGELOG.md ## Test plan - [ ] Click menu bar icon when window is hidden → window appears - [ ] Click menu bar icon when window is visible but not active → window becomes active - [ ] Click menu bar icon when window is active → menu appears - [ ] Verify all menu items still work correctly Fixes #47 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 16:43:35 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/itsypad-macos#64
No description provided.