[PR #1716] [MERGED] Add ability to command-drag out status item to remove #1277

Closed
opened 2026-05-05 07:09:53 -06:00 by gitea-mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MonitorControl/MonitorControl/pull/1716
Author: @pmarell
Created: 1/5/2025
Status: Merged
Merged: 1/20/2025
Merged by: @waydabber

Base: mainHead: main


📝 Commits (1)

  • 51429f2 Add ability to drag out status item to remove

📊 Changes

3 files changed (+33 additions, -5 deletions)

View changed files

📝 MonitorControl/Support/AppDelegate.swift (+22 -3)
📝 MonitorControl/Support/MenuHandler.swift (+2 -2)
📝 MonitorControl/View Controllers/Preferences/MenuslidersPrefsViewController.swift (+9 -0)

📄 Description

A small change which adds the ability to command-drag the status item out of the menu bar to remove it, as a shortcut.

When this happens, the "Menu Icon" setting updates to "Always hide" automatically. With this behaviour, there were also some cases where that setting would get updated inadvertently from other changes to the status item's visibility. A updateStatusItemVisibility method was added to reliably detect whether the status item's visibility was due to the user dragging out the item, and not from something else.


🔄 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/MonitorControl/MonitorControl/pull/1716 **Author:** [@pmarell](https://github.com/pmarell) **Created:** 1/5/2025 **Status:** ✅ Merged **Merged:** 1/20/2025 **Merged by:** [@waydabber](https://github.com/waydabber) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (1) - [`51429f2`](https://github.com/MonitorControl/MonitorControl/commit/51429f25af5cd7c8434c9800800e2428c1eb379a) Add ability to drag out status item to remove ### 📊 Changes **3 files changed** (+33 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `MonitorControl/Support/AppDelegate.swift` (+22 -3) 📝 `MonitorControl/Support/MenuHandler.swift` (+2 -2) 📝 `MonitorControl/View Controllers/Preferences/MenuslidersPrefsViewController.swift` (+9 -0) </details> ### 📄 Description A small change which adds the ability to command-drag the status item out of the menu bar to remove it, as a shortcut. When this happens, the "Menu Icon" setting updates to "Always hide" automatically. With this behaviour, there were also some cases where that setting would get updated inadvertently from other changes to the status item's visibility. A `updateStatusItemVisibility` method was added to reliably detect whether the status item's visibility was due to the user dragging out the item, and not from something else. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-05-05 07:09:53 -06: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: github-starred/MonitorControl#1277
No description provided.