Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
Breeze
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DeStream-public
Breeze
Commits
fdee7e4d
Commit
fdee7e4d
authored
Jul 06, 2017
by
dev0tion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix first time tray icon conversion error
parent
4608f1d6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
main.ts
Breeze.UI/main.ts
+4
-3
No files found.
Breeze.UI/main.ts
View file @
fdee7e4d
...
@@ -56,7 +56,7 @@ function createWindow() {
...
@@ -56,7 +56,7 @@ function createWindow() {
// Emitted when the window is going to close.
// Emitted when the window is going to close.
mainWindow
.
on
(
'close'
,
function
()
{
mainWindow
.
on
(
'close'
,
function
()
{
if
(
process
.
platform
!==
'darwin'
)
{
if
(
process
.
platform
!==
'darwin'
&&
!
serve
)
{
var
http
=
require
(
'http'
);
var
http
=
require
(
'http'
);
const
options
=
{
const
options
=
{
hostname
:
'localhost'
,
hostname
:
'localhost'
,
...
@@ -141,9 +141,10 @@ function createTray() {
...
@@ -141,9 +141,10 @@ function createTray() {
var
iconPath
var
iconPath
if
(
os
.
platform
()
===
'win32'
)
{
if
(
os
.
platform
()
===
'win32'
)
{
iconPath
=
__dirname
+
'/assets/images/
breeze-logo-tray.ico'
;
iconPath
=
'.
\
src
\
assets
\
images
\
breeze-logo-tray.ico'
;
}
else
{
}
else
{
iconPath
=
__dirname
+
'/assets/images/breeze-logo-tray.png'
;
// iconPath = path.join(__dirname + '//assets//images//breeze-logo-tray.png');
iconPath
=
'./src/assets/images/breeze-logo-tray.png'
;
}
}
appIcon
=
new
Tray
(
iconPath
);
appIcon
=
new
Tray
(
iconPath
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment