Comments (7)
None of the more active devs have currently windows as their main platform. This project could really do with someone helping out on that side.
from yakyak.
I've tried to implement it by myself, but it didn't work out as expected. The problem is hiding the window from taskbar. I've done it through calling mainWindow.hide() on minimize event, but immediately after the window is hidden, it pops up again, but without content.
main.coffee
...
Tray = require 'tray'
...
tray = null
...
app.on 'ready', ->
...
mainWindow.on 'minimize', ->
tray = new Tray path.join __dirname, 'icons', 'icon.png'
mainWindow.hide()
from yakyak.
Linux has trays too (sometimes) and as far as I know (but I'm not sure) the OS X Dock basically acts as a tray because on OS X apps typically don't really exit when you close the window. But I may be talking nonsense.
Yes, would be nice if more Windows people came to help out.
from yakyak.
@georgeto: I'm not sure if the minimize
event is the right place to hide the window. I think the regular minimize (to taskbar) and minimize to tray should be treated as different things.
Typically, apps that support tray icons do it as follows:
- The minimize button in the window title bar minimizes the window to the taskbar just like any other window.
- Clicking the tray icon toggles window visibility and when hidden it also disappears from the task bar. When shown it also reappears in the task bar.
- There is an setting/option whether to just minimize to tray when closing the window (through "×" button in the window title bar), or whether to actually exit the app. It's often labeled as "Keep running in the system tray when closed". Minimize to tray is usually the default.
- Right-clicking the tray icon usually opens a context menu that offers additional functionality including showing the window if it's hidden, hiding it if it's visible, and actually exiting the app.
from yakyak.
@maxkueng: It was just a quick test, that I have done to play around with the tray object. The behavior you described is exactly what I requested and its a shame, that I did not described it in such detail. Thank you.
from yakyak.
Cool, I'm excited to see the result! If you need someone to try it out on Linux let me know. I do have a tray :)
from yakyak.
Did this work?
from yakyak.
Related Issues (20)
- Empty login window keeps flashing up HOT 39
- Google Chat pictures do not show up in YakYak HOT 3
- 'Not connected' 'Connecting' loop on stable, 'Connecting...' forever on beta HOT 8
- Possible fatal error on main process YakYak could stop working as expected.
- Cannot connect - Stuck in switching between "connected" and "not connecting". HOT 2
- YakYak fails to start after upgrade to glibc 2.34 HOT 7
- SMS NOT working....
- Images Missing in Chats HOT 10
- The pop theme doesn't work. HOT 1
- [Request]Update through the app.
- Connecting not connecting Win 10 HOT 3
- provides a broken link when viewing a picture on yakyak HOT 6
- kali 无法运行
- Cannot add new conversation
- Yakyak segfaults on ubuntu 22.04 HOT 2
- Pictures don't display... HOT 3
- yakyak does not start HOT 2
- Abandoned Project? HOT 5
- Connecting not connecting Win 10 HOT 31
- Not connecting ubuntu 20.04
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yakyak.