@@ -364,9 +364,10 @@ app.on('ready', () => {
364
364
let isNotified = store . has ( "windows-7-notification" ) ;
365
365
if ( isNotified == false ) {
366
366
dialog . showMessageBox ( win , {
367
- title : i18n . __ ( 'windows-7-notification' ) ,
367
+ title : " wnr" ,
368
+ message : i18n . __ ( 'windows-7-notification' ) ,
368
369
type : "warning" ,
369
- message : i18n . __ ( 'windows-7-notification-msg' ) ,
370
+ detail : i18n . __ ( 'windows-7-notification-msg' ) ,
370
371
} ) . then ( function ( ) {
371
372
store . set ( "windows-7-notification" , 1 ) ;
372
373
} ) ;
@@ -910,7 +911,7 @@ function leanCloudSolution() {
910
911
pushNotificationLink = link ;
911
912
store . set ( id , true ) ;
912
913
dialog . showMessageBox ( win , {
913
- title : "wnr" ,
914
+ title : " wnr" ,
914
915
type : "warning" ,
915
916
message : title ,
916
917
detail : content ,
@@ -1099,10 +1100,10 @@ ipcMain.on('warning-giver-workend', function () {
1099
1100
setTimeout ( function ( ) {
1100
1101
if ( process . platform != "darwin" || ( process . platform == "darwin" && restTimeFocused ) )
1101
1102
dialog . showMessageBox ( win , {
1102
- title : "wnr" ,
1103
+ title : " wnr" ,
1103
1104
message : ( store . has ( "personalization-notification.work-time-end" ) ?
1104
1105
store . get ( "personalization-notification.work-time-end" ) : i18n . __ ( 'work-time-end' ) ) ,
1105
- type : "warning " ,
1106
+ type : "info " ,
1106
1107
detail : ( store . has ( "personalization-notification.work-time-end-msg" ) ?
1107
1108
store . get ( "personalization-notification.work-time-end-msg" ) : i18n . __ ( 'work-time-end-msg' ) )
1108
1109
+ " " + ( hasMultiDisplays ? "\r" + i18n . __ ( 'has-multi-displays' ) : "" ) ,
@@ -1120,10 +1121,10 @@ ipcMain.on('warning-giver-workend', function () {
1120
1121
win . maximizable = false ;
1121
1122
} ) ;
1122
1123
else dialog . showMessageBox ( {
1123
- title : "wnr" ,
1124
+ title : " wnr" ,
1124
1125
message : ( store . has ( "personalization-notification.work-time-end" ) ?
1125
1126
store . get ( "personalization-notification.work-time-end" ) : i18n . __ ( 'work-time-end' ) ) ,
1126
- type : "warning " ,
1127
+ type : "info " ,
1127
1128
detail : ( store . has ( "personalization-notification.work-time-end-msg" ) ?
1128
1129
store . get ( "personalization-notification.work-time-end-msg" ) : i18n . __ ( 'work-time-end-msg' ) )
1129
1130
+ " " + ( hasMultiDisplays ? "\r" + i18n . __ ( 'has-multi-displays' ) : "" ) ,
@@ -1217,10 +1218,10 @@ ipcMain.on('warning-giver-restend', function () {
1217
1218
setTimeout ( function ( ) {
1218
1219
if ( process . platform != "darwin" || ( process . platform == "darwin" && workTimeFocused ) )
1219
1220
dialog . showMessageBox ( win , {
1220
- title : "wnr" ,
1221
+ title : " wnr" ,
1221
1222
message : ( store . has ( "personalization-notification.rest-time-end" ) ?
1222
1223
store . get ( "personalization-notification.rest-time-end" ) : i18n . __ ( 'rest-time-end' ) ) ,
1223
- type : "warning " ,
1224
+ type : "info " ,
1224
1225
detail : ( store . has ( "personalization-notification.rest-time-end-msg" ) ?
1225
1226
store . get ( "personalization-notification.rest-time-end-msg" ) : i18n . __ ( 'rest-time-end-msg' ) )
1226
1227
+ " " + ( hasMultiDisplays ? "\r" + i18n . __ ( 'has-multi-displays' ) : "" ) ,
@@ -1238,10 +1239,10 @@ ipcMain.on('warning-giver-restend', function () {
1238
1239
win . maximizable = false ;
1239
1240
} )
1240
1241
else dialog . showMessageBox ( {
1241
- title : "wnr" ,
1242
+ title : " wnr" ,
1242
1243
message : ( store . has ( "personalization-notification.rest-time-end" ) ?
1243
1244
store . get ( "personalization-notification.rest-time-end" ) : i18n . __ ( 'rest-time-end' ) ) ,
1244
- type : "warning " ,
1245
+ type : "info " ,
1245
1246
detail : ( store . has ( "personalization-notification.rest-time-end-msg" ) ?
1246
1247
store . get ( "personalization-notification.rest-time-end-msg" ) : i18n . __ ( 'rest-time-end-msg' ) )
1247
1248
+ " " + ( hasMultiDisplays ? "\r" + i18n . __ ( 'has-multi-displays' ) : "" ) ,
@@ -1304,20 +1305,20 @@ ipcMain.on('warning-giver-all-task-end', function () {
1304
1305
} else
1305
1306
setTimeout ( function ( ) {
1306
1307
dialog . showMessageBox ( win , {
1307
- title : "wnr" ,
1308
+ title : " wnr" ,
1308
1309
message : ( store . has ( "personalization-notification.all-task-end" ) ?
1309
1310
store . get ( "personalization-notification.all-task-end" ) : i18n . __ ( 'all-task-end' ) ) ,
1310
- type : "warning " ,
1311
+ type : "info " ,
1311
1312
detail : ( store . has ( "personalization-notification.all-task-end-msg" ) ?
1312
1313
store . get ( "personalization-notification.all-task-end-msg" ) : i18n . __ ( 'all-task-end-msg' ) ) ,
1313
1314
} ) . then ( function ( response ) {
1314
1315
win . loadFile ( 'index.html' ) ; //automatically back
1315
1316
setFullScreenMode ( false ) ;
1316
1317
if ( ! store . has ( "suggest-star" ) ) {
1317
1318
dialog . showMessageBox ( win , {
1318
- title : "wnr" ,
1319
+ title : " wnr" ,
1319
1320
message : i18n . __ ( 'suggest-star' ) ,
1320
- type : "warning " ,
1321
+ type : "info " ,
1321
1322
detail : i18n . __ ( 'suggest-star-msg' ) ,
1322
1323
checkboxLabel : i18n . __ ( 'suggest-star-chk' ) ,
1323
1324
checkboxChecked : true
@@ -1354,7 +1355,7 @@ ipcMain.on('update-feedback', function (event, message) {
1354
1355
updateMessage += ( updateIterator + 1 ) . toString ( ) + ". " + json . content [ store . get ( 'i18n' ) ] [ updateIterator ] + '\r' ;
1355
1356
}
1356
1357
dialog . showMessageBox ( ( settingsWin != null ) ? settingsWin : ( ( aboutWin != null ) ? aboutWin : win ) , {
1357
- title : i18n . __ ( 'update' ) ,
1358
+ title : " wnr" ,
1358
1359
type : "warning" ,
1359
1360
message : i18n . __ ( 'update-msg' ) ,
1360
1361
detail : i18n . __ ( 'update-content' ) + "\r" + updateMessage ,
@@ -1382,15 +1383,15 @@ ipcMain.on('update-feedback', function (event, message) {
1382
1383
ipcMain . on ( 'alert' , function ( event , message ) {
1383
1384
if ( settingsWin != null ) {
1384
1385
dialog . showMessageBox ( settingsWin , {
1385
- title : "wnr" ,
1386
+ title : " wnr" ,
1386
1387
type : "info" ,
1387
1388
message : message
1388
1389
} ) . then ( function ( ) {
1389
1390
settingsWin . moveTop ( ) ;
1390
1391
} ) ;
1391
1392
} else {
1392
1393
dialog . showMessageBox ( win , {
1393
- title : "wnr" ,
1394
+ title : " wnr" ,
1394
1395
type : "info" ,
1395
1396
message : message
1396
1397
} )
@@ -1400,7 +1401,7 @@ ipcMain.on('alert', function (event, message) {
1400
1401
ipcMain . on ( 'delete-all-data' , function ( ) {
1401
1402
if ( settingsWin != null ) {
1402
1403
dialog . showMessageBox ( settingsWin , {
1403
- title : "wnr" ,
1404
+ title : " wnr" ,
1404
1405
message : i18n . __ ( 'delete-all-data-dialog-box-title' ) ,
1405
1406
type : "warning" ,
1406
1407
detail : i18n . __ ( 'delete-all-data-dialog-box-content' ) ,
@@ -1421,7 +1422,7 @@ ipcMain.on('delete-all-data', function () {
1421
1422
function windowCloseChk ( ) {
1422
1423
if ( ( process . env . NODE_ENV != "development" ) && win != null )
1423
1424
dialog . showMessageBox ( win , {
1424
- title : "wnr" ,
1425
+ title : " wnr" ,
1425
1426
message : i18n . __ ( 'window-close-dialog-box-title' ) ,
1426
1427
type : "warning" ,
1427
1428
detail : i18n . __ ( 'window-close-dialog-box-content' ) ,
@@ -1660,7 +1661,7 @@ ipcMain.on('locker-passcode', function (event, message) {
1660
1661
if ( message == "empty" ) lockerMessage = i18n . __ ( 'locker-settings-empty-password' ) ;
1661
1662
if ( settingsWin != null )
1662
1663
dialog . showMessageBox ( settingsWin , {
1663
- title : "wnr" ,
1664
+ title : " wnr" ,
1664
1665
message : i18n . __ ( 'locker-settings' ) ,
1665
1666
type : "warning" ,
1666
1667
detail : lockerMessage
0 commit comments