This commit is contained in:
life
2021-03-27 22:48:56 +08:00
parent 59365f2195
commit e83689c756
4 changed files with 13 additions and 7 deletions

View File

@@ -121,6 +121,8 @@ function getMsg(key) {
<script>
$(function() {
// 不要显示顶部菜单
gui.Menu.setApplicationMenu(null)
$('.tool-close-blur').click(function() {
gui.getCurrentWindow().close();

View File

@@ -5,9 +5,9 @@ var appIcon;
// Report crashes to our server.
crashReporter.start({
productName: 'YourName',
companyName: 'YourCompany',
submitURL: 'https://your-domain.com/url-to-submit',
productName: 'Leanote',
companyName: 'Leanote',
submitURL: 'https://leanote.com/leanote-desktop/crash-reporter',
autoSubmit: true
});
@@ -298,7 +298,7 @@ function openIt() {
appIcon.on('click', function (e) {
show();
e.preventDefault();
// e.preventDefault();
});
appIcon.on('right-click', function () {
appIcon.popUpContextMenu(contextMenu);

View File

@@ -655,7 +655,7 @@ var UserInfo = {};
window.requireNode = window.require;
window.nodeRequire = window.require;
window.require = undefined;
window.debug = false;
window.isDebug = false;
</script>
<!-- 渲染view -->

View File

@@ -2079,10 +2079,14 @@ function userMenu(allUsers) {
Pren.init();
if (isMac() || debug) {
if (isMac() || isDebug) {
setMacTopMenu();
}
if (debug) {
else {
gui.Menu.setApplicationMenu(null)
}
if (isDebug) {
setTimeout(function () {
gui.win.toggleDevTools();
}, 3000)