<ul dir="auto">
<li>Electron version: 1.4.3</li>
<li>Operating system: macOS Sierra 10.12</li>
<li>Description:<br>
I haven't found something in issues so I created it :) Maybe it is a duplicate. Than it can be closed :D<br>
However. It would be great if we can create separator in <a href="https://github.com/electron/electron/blob/master/docs/api/tray.md">Tray</a>.<br>
Like the <a href="https://github.com/electron/electron/blob/master/docs/api/menu-item.md">menu-item type separator</a>.</li>
</ul>
<p dir="auto">Current tray implementation (without separator):<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/10229883/19338769/6f00d0d6-911f-11e6-8505-9d818621811a.png"><img src="https://cloud.githubusercontent.com/assets/10229883/19338769/6f00d0d6-911f-11e6-8505-9d818621811a.png" alt="bildschirmfoto 2016-10-13 um 08 27 03" style="max-width: 100%;"></a><br>
(Here I like separators between upload and settings and between settings and close)</p>
<p dir="auto">Example of macOS:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/10229883/19338789/8d32ed0a-911f-11e6-9e43-77edcf3980f0.png"><img src="https://cloud.githubusercontent.com/assets/10229883/19338789/8d32ed0a-911f-11e6-9e43-77edcf3980f0.png" alt="bildschirmfoto 2016-10-13 um 08 28 29" style="max-width: 100%;"></a></p>
<ul dir="auto">
<li>Electron Version: 2.0.5</li>
<li>Operating System (Platform and Version): macOS Mojave beta4</li>
</ul>
<p dir="auto"><strong>Expected Behavior</strong><br>
Call <code class="notranslate">browserWindow.setProgressBar(0.5)</code>, the app hard crashes citing an unrecognized selector. Doesn't happen on High Sierra</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[_NSImageViewSimpleImageView setDoubleValue:]: unrecognized selector sent to instance 0x7fa6b7472040"><pre class="notranslate"><code class="notranslate">[_NSImageViewSimpleImageView setDoubleValue:]: unrecognized selector sent to instance 0x7fa6b7472040
</code></pre></div>
<p dir="auto"><strong>Actual behavior</strong><br>
Don't  crash, set the progress bar</p>
<p dir="auto"><strong>To Reproduce</strong></p>
<p dir="auto">Clone the repo and press the crash button...</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="git clone https://github.com/wavebox/electron-quick-start.git -b mojave_set_progressbar_crash
cd electron-quick-start
npm install
npm start"><pre class="notranslate">git clone https://github.com/wavebox/electron-quick-start.git -b mojave_set_progressbar_crash
<span class="pl-c1">cd</span> electron-quick-start
npm install
npm start</pre></div>