Skip to content

Commit

Permalink
Don't react to tray icon click on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLastProject committed Mar 30, 2017
1 parent 7008407 commit 5d251ca
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]
### Fixed
- Clicking the tray icon no longer toggles visibility on macOS

## [0.6] - 2017-02-27
### Added
- Install dependencies automatically if the module provides a requirements.txt file
Expand Down
5 changes: 3 additions & 2 deletions pext/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1562,8 +1562,9 @@ def __init__(self, window: Window, app_icon: str, profile: str) -> None:
def icon_clicked(self, reason: int) -> None:
"""React to a click event."""
# Only show the window on a left click
if reason == 3:
self.window.toggle_visibility()
if platform.system() != "Darwin":
if reason == 3:
self.window.toggle_visibility()


def _init_persist(profile: str) -> str:
Expand Down

0 comments on commit 5d251ca

Please sign in to comment.