15 3
Sign in to rate

Minimize to tray

<10kB. Updated 2020-02-16.
The author has shared 4 other item(s).

Description

Adds an icon to the system tray and allows minimizing anki to the tray when the icon is pressed or when the main window X button is pressed. Configuration To start Anki minimized in the tray Anki 2: Tools > Add Ons > MinimizeTotray2 > Edit... and change the value of the variable HIDE_ON_STARTUP to True Anki 2.1: Tools > Add-ons > Minimize to tray > Config and set the variable hide_on_startup to true Changelog Anki 2.1: v1.2 (15/02/2020) Clicking on the tray icon focus/un-minimize Anki windows when they are not already focused. (Experimental feature. The windows may flicker in some rare cases) v1.1 (19/12/2018) Add action "Show all windows" (contribution of a-rodin) v1.0 (12/07/2018) Initial release Anki 2: v0.4 (12/07/2018) Rename to 'MinimizeToTray' v0.3 (30/08/2014) Fix behavior on shutdown, to prevent data loss (thanks to Adriano Bedeschi) v0.2 (14/12/2012) Fix multiple trays bug, Add minimize on startup feature v0.1 (9/11/2012) Initial release Known issues In the Anki 2.1 version when hide_on_startup is set to True, the tray icon does not appear if the profile manager is shown when Anki is started. So this option should be activated only when a single user is present or when Anki is started with the -b PROFILE option so that the profile manager is not displayed. Issues Report any bug in the GitHub issues page of the project. The Anki 2 version is unsupported. Comments on this page like "It doesn't work" are completely unuseful. Please fill a bug report on github (preferably) or clearly explain the problem and paste the error messages in the comment. Author Simone Gaiarin (simgunz AT gmaill DOT com) License Software distributed under the GNU General Public License version 3 (GNU GPL v3). http://www.gnu.org/copyleft/gpl.html References Github page (Anki 2) Github page (Anki 2.1)

Download

As add-ons are programs downloaded from the internet, they are potentially malicious. You should only download add-ons you trust.

Supported Anki versions:

To download this add-on, please copy and paste the following code into Anki 2.1:

85158043

If you were linked to this page from the internet, please open Anki on your computer, go to the Tools menu and then Add-ons>Browse & Install to paste in the code.

This add-on previously supported Anki 2.0. You can download the last version supporting 2.0 here. As Anki 2.0 has been discontinued, no support is available for this version.

All Anki 2.1.x Add-Ons Ask a Question

Reviews

on 1580317109
works perfectly.
on 1568823067
TLDR: Please set the default tray icon click as toggle visibility.

It would be better to have the GUI operations more consistently designed (I use it on macOS):

1. Click the tray button will show the window, no matter it is currently unfocused, hidden or minimized. Currently clicking the tray button and select show all windows sometimes does nothing, maybe because the window is unfocused.

2. It would be better to make the default action of clicking tray icon as toggle visibility, rather than click the "show all windows" menu entry. Having a good minimize to tray function is good enough to eliminate quiting Anki for most time, so the minimize to try should be the major and most frequently used feature.
Comment from author
Edit: I implemented the requested feature. Though due to weird Qt behavior there are some flickers of the windows in some cases and I am not 100% confident that this will work reliably. Test the feature and let me know.

If I understand correctly the desired behaviour should be:
- Click X > Minimize to tray
- Click tray + Windows shown and focused > Does nothing (windows remain visible and focused)
- Click tray + Windows shown and unfocused > Focus it
Regarding the 'hidden' state, I guess it is a Mac feature, but probably should be taken care of by Qt if this is implemented correctly.
on 1560022254
Good!
on 1555774473
Очень хорошо.
on 1554637188
Works pretty good. It does have a tendency to shrink the window to the middle of my screen though but that's fine, I resize it and it sticks for a while.
on 1553864739
Works perfectly! Awesome to use in conjunction with AnkiConnect.
on 1549911113
It's working, thanks
on 1547777840
Good
on 1547300064
works well in my arch linux with i3wm as interface
on 1541037431
works great in my old kubuntu 14.04, thanks!!
on 1533218661
Works for me on Windows 7 (Anki 2.0)
on 1412640000
doesn't work

i have anki2.0.29 and it doesn't work on it...
on 1393632000
How about minimize only some windows

Hi, I would give it 5 stars if there's that feature. Actually, I just wanna hide the main windows while I'm adding new words ^^