This repository was archived by the owner on Jun 15, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +21
-8
lines changed Expand file tree Collapse file tree 6 files changed +21
-8
lines changed Original file line number Diff line number Diff line change 6
6
7
7
## 这是一个什么项目?
8
8
9
- 这是一个把github desktop翻译成中文的项目, 当前翻译版本[ here ] ( https://github.com/gouzil/github-desktop-zh/tree/releases/ 3.0.1-test7 )
9
+ 这是一个把github desktop翻译成中文的项目, 当前翻译版本[ release-3.0.2 ] ( https://github.com/gouzil/github-desktop-zh/tree/release- 3.0.2 )
10
10
11
11
## 部分截图
12
12
Original file line number Diff line number Diff line change 3
3
"productName" : " GitHub Desktop" ,
4
4
"bundleID" : " com.github.GitHubClient" ,
5
5
"companyName" : " GitHub, Inc." ,
6
- "version" : " 3.0.1-beta1 " ,
6
+ "version" : " 3.0.2 " ,
7
7
"main" : " ./main.js" ,
8
8
"repository" : {
9
9
"type" : " git" ,
26
26
"codemirror-mode-elixir" : " ^1.1.2" ,
27
27
"compare-versions" : " ^3.6.0" ,
28
28
"deep-equal" : " ^1.0.1" ,
29
- "desktop-notifications" : " ^0.2.0 " ,
29
+ "desktop-notifications" : " ^0.2.2 " ,
30
30
"desktop-trampoline" : " desktop/desktop-trampoline#v0.9.8" ,
31
31
"dexie" : " ^2.0.0" ,
32
32
"dompurify" : " ^2.3.3" ,
Original file line number Diff line number Diff line change @@ -21,7 +21,10 @@ import * as path from 'path'
21
21
import windowStateKeeper from 'electron-window-state'
22
22
import * as ipcMain from './ipc-main'
23
23
import * as ipcWebContents from './ipc-webcontents'
24
- import { installNotificationCallback } from './notifications'
24
+ import {
25
+ installNotificationCallback ,
26
+ terminateDesktopNotifications ,
27
+ } from './notifications'
25
28
26
29
export class AppWindow {
27
30
private window : Electron . BrowserWindow
@@ -107,6 +110,7 @@ export class AppWindow {
107
110
}
108
111
nativeTheme . removeAllListeners ( )
109
112
autoUpdater . removeAllListeners ( )
113
+ terminateDesktopNotifications ( )
110
114
} )
111
115
112
116
if ( __WIN32__ ) {
Original file line number Diff line number Diff line change 1
1
import {
2
2
initializeNotifications ,
3
3
onNotificationEvent ,
4
+ terminateNotifications ,
4
5
} from 'desktop-notifications'
5
6
import { BrowserWindow } from 'electron'
6
7
import { findToastActivatorClsid } from '../lib/find-toast-activator-clsid'
@@ -35,6 +36,10 @@ export function initializeDesktopNotifications() {
35
36
initializeNotifications ( { toastActivatorClsid : windowsToastActivatorClsid } )
36
37
}
37
38
39
+ export function terminateDesktopNotifications ( ) {
40
+ terminateNotifications ( )
41
+ }
42
+
38
43
export function installNotificationCallback ( window : BrowserWindow ) {
39
44
onNotificationEvent < DesktopAliveEvent > ( ( event , id , userInfo ) => {
40
45
ipcWebContents . send (
Original file line number Diff line number Diff line change @@ -363,10 +363,10 @@ delegates@^1.0.0:
363
363
resolved "https://registry.yarnpkg.com/delegates/-/delegates-1.0.0.tgz#84c6e159b81904fdca59a0ef44cd870d31250f9a"
364
364
integrity sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=
365
365
366
- desktop-notifications@^0.2.0 :
367
- version "0.2.0 "
368
- resolved "https://registry.yarnpkg.com/desktop-notifications/-/desktop-notifications-0.2.0 .tgz#8ec6d732671d42e9aa4dac4523a2a57806c9e210 "
369
- integrity sha512-6puOHRkSHmH1HpQDftFtpJU+ko7gw1vtSlf2LViJX+sY2N+9pVuYO85HjTlpktHDSVKvDnFGhPVAoZmjXIvo/Q ==
366
+ desktop-notifications@^0.2.2 :
367
+ version "0.2.2 "
368
+ resolved "https://registry.yarnpkg.com/desktop-notifications/-/desktop-notifications-0.2.2 .tgz#197a32ee504a894ad074793dab285681c533e5ac "
369
+ integrity sha512-XMnxdWV6ZfiCzLZNC00n6h30Jt3z8yv21FAPBt/kK6hANI0PaoYWsRKEYya0zMUAX/9lrh429R5OtRGOKWZQSw ==
370
370
dependencies :
371
371
node-addon-api "^5.0.0"
372
372
prebuild-install "^7.0.1"
Original file line number Diff line number Diff line change 1
1
{
2
2
"releases" : {
3
+ "3.0.2" : [
4
+ " [Fixed] Fix crash launching the app on macOS High Sierra - #14712" ,
5
+ " [Fixed] Terminate all GitHub Desktop processes on Windows when the app is closed - #14733. Thanks @tsvetilian-ty!"
6
+ ],
3
7
"3.0.1-beta1" : [
4
8
" [Added] Add support for PyCharm Community Edition on Windows - #14411. Thanks @tsvetilian-ty!" ,
5
9
" [Added] Add support for highlighting .mjs/.cjs/.mts/.cts files as JavaScript/TypeScript - #14481. Thanks @j-f1!" ,
You can’t perform that action at this time.
0 commit comments