HomePhabricator

Toggle main window hide on tray icon click
86d563494173Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Toggle main window hide on tray icon click

  • converted openBictoinAction to toggleHideAction
  • put GUIUtil functions into a namespace instead of a class
  • put window-related functions together in optionsdialog

Reasoning:

  • toggle is more typical behaviour
  • it's more functional
  • better UX

The typical issue with toggling visibility is that when a window
is obscured by other windows but in the 'shown' state, hiding it
isn't what you want. I've added an 'isObscured' function to GUIUtil
that checks several pixels in the window to see if they are visible
on the desktop so that an obscured but shown window can be raised.

Conflicts:

src/qt/guiutil.cpp
src/qt/guiutil.h

Details

Provenance
sje397 <sje397@gmail.com>Authored on Feb 17 2012, 14:34
schancelPushed on Jan 5 2018, 21:58
schancelPushed on Jan 5 2018, 21:39
schancelPushed on Jan 5 2018, 21:17
Parents
rSTAGING962e2fcdb6aa: Merge pull request #1070 from cardpuncher/patch-1
Branches
Unknown
Tags
Unknown

Event Timeline

sje397 <sje397@gmail.com> committed rSTAGING86d563494173: Toggle main window hide on tray icon click (authored by sje397 <sje397@gmail.com>).Apr 10 2012, 14:07