Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
antSword
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
HuangJunbo
antSword
Commits
1b660f8b
Commit
1b660f8b
authored
Mar 14, 2019
by
Medicean
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(Enhance:Modules) 系统托盘新增「重启应用」菜单
parent
c34277de
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
CHANGELOG.md
CHANGELOG.md
+1
-0
menubar.js
modules/menubar.js
+10
-1
No files found.
CHANGELOG.md
View file @
1b660f8b
...
...
@@ -42,6 +42,7 @@
*
新增 「JSP Custom Shell For Oracle」
*
新增 Decodes 自动猜解编码,在中文少量的情况下,成功率会降低
*
系统托盘新增「重启应用」菜单
### BugFix
...
...
modules/menubar.js
View file @
1b660f8b
...
...
@@ -142,7 +142,7 @@ class Menubar {
if
(
this
.
electron
.
BrowserWindow
.
getAllWindows
().
length
>
1
)
{
return
;
}
this
.
mainWindow
.
webContents
.
reload
(
);
//.bind(this.mainWindow.webContents)
this
.
mainWindow
.
webContents
.
loadURL
(
'ant-views://index.html'
);
//.bind(this.mainWindow.webContents)
}
},
{
label
:
LANG
[
'debug'
][
'devtools'
],
...
...
@@ -185,6 +185,15 @@ class Menubar {
},
{
label
:
LANG
[
'tray'
][
'settings'
],
click
:
event
.
sender
.
send
.
bind
(
event
.
sender
,
'menubar'
,
'settings'
)
},
{
label
:
LANG
[
'debug'
][
'restart'
],
click
:
()
=>
{
// 在有多个窗口的时候,不刷新
if
(
this
.
electron
.
BrowserWindow
.
getAllWindows
().
length
>
1
)
{
return
;
}
this
.
mainWindow
.
webContents
.
loadURL
(
'ant-views://index.html'
);
}
},
{
label
:
LANG
[
'tray'
][
'about'
],
click
:
event
.
sender
.
send
.
bind
(
event
.
sender
,
'menubar'
,
'settings-about'
)
...
...
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