@@ -1099,10 +1099,11 @@ ipcMain.on('warning-giver-workend', function () {
1099
1099
setTimeout ( function ( ) {
1100
1100
if ( process . platform != "darwin" || ( process . platform == "darwin" && restTimeFocused ) )
1101
1101
dialog . showMessageBox ( win , {
1102
- title : ( store . has ( "personalization-notification.work-time-end" ) ?
1102
+ title : "wnr" ,
1103
+ message : ( store . has ( "personalization-notification.work-time-end" ) ?
1103
1104
store . get ( "personalization-notification.work-time-end" ) : i18n . __ ( 'work-time-end' ) ) ,
1104
1105
type : "warning" ,
1105
- message : ( store . has ( "personalization-notification.work-time-end-msg" ) ?
1106
+ detail : ( store . has ( "personalization-notification.work-time-end-msg" ) ?
1106
1107
store . get ( "personalization-notification.work-time-end-msg" ) : i18n . __ ( 'work-time-end-msg' ) )
1107
1108
+ " " + ( hasMultiDisplays ? "\r" + i18n . __ ( 'has-multi-displays' ) : "" ) ,
1108
1109
} ) . then ( function ( response ) {
@@ -1119,10 +1120,11 @@ ipcMain.on('warning-giver-workend', function () {
1119
1120
win . maximizable = false ;
1120
1121
} ) ;
1121
1122
else dialog . showMessageBox ( {
1122
- title : ( store . has ( "personalization-notification.work-time-end" ) ?
1123
+ title : "wnr" ,
1124
+ message : ( store . has ( "personalization-notification.work-time-end" ) ?
1123
1125
store . get ( "personalization-notification.work-time-end" ) : i18n . __ ( 'work-time-end' ) ) ,
1124
1126
type : "warning" ,
1125
- message : ( store . has ( "personalization-notification.work-time-end-msg" ) ?
1127
+ detail : ( store . has ( "personalization-notification.work-time-end-msg" ) ?
1126
1128
store . get ( "personalization-notification.work-time-end-msg" ) : i18n . __ ( 'work-time-end-msg' ) )
1127
1129
+ " " + ( hasMultiDisplays ? "\r" + i18n . __ ( 'has-multi-displays' ) : "" ) ,
1128
1130
} ) . then ( function ( response ) {
@@ -1215,10 +1217,11 @@ ipcMain.on('warning-giver-restend', function () {
1215
1217
setTimeout ( function ( ) {
1216
1218
if ( process . platform != "darwin" || ( process . platform == "darwin" && workTimeFocused ) )
1217
1219
dialog . showMessageBox ( win , {
1218
- title : ( store . has ( "personalization-notification.rest-time-end" ) ?
1220
+ title : "wnr" ,
1221
+ message : ( store . has ( "personalization-notification.rest-time-end" ) ?
1219
1222
store . get ( "personalization-notification.rest-time-end" ) : i18n . __ ( 'rest-time-end' ) ) ,
1220
1223
type : "warning" ,
1221
- message : ( store . has ( "personalization-notification.rest-time-end-msg" ) ?
1224
+ detail : ( store . has ( "personalization-notification.rest-time-end-msg" ) ?
1222
1225
store . get ( "personalization-notification.rest-time-end-msg" ) : i18n . __ ( 'rest-time-end-msg' ) )
1223
1226
+ " " + ( hasMultiDisplays ? "\r" + i18n . __ ( 'has-multi-displays' ) : "" ) ,
1224
1227
} ) . then ( function ( response ) {
@@ -1235,10 +1238,11 @@ ipcMain.on('warning-giver-restend', function () {
1235
1238
win . maximizable = false ;
1236
1239
} )
1237
1240
else dialog . showMessageBox ( {
1238
- title : ( store . has ( "personalization-notification.rest-time-end" ) ?
1241
+ title : "wnr" ,
1242
+ message : ( store . has ( "personalization-notification.rest-time-end" ) ?
1239
1243
store . get ( "personalization-notification.rest-time-end" ) : i18n . __ ( 'rest-time-end' ) ) ,
1240
1244
type : "warning" ,
1241
- message : ( store . has ( "personalization-notification.rest-time-end-msg" ) ?
1245
+ detail : ( store . has ( "personalization-notification.rest-time-end-msg" ) ?
1242
1246
store . get ( "personalization-notification.rest-time-end-msg" ) : i18n . __ ( 'rest-time-end-msg' ) )
1243
1247
+ " " + ( hasMultiDisplays ? "\r" + i18n . __ ( 'has-multi-displays' ) : "" ) ,
1244
1248
} ) . then ( function ( response ) {
@@ -1300,19 +1304,21 @@ ipcMain.on('warning-giver-all-task-end', function () {
1300
1304
} else
1301
1305
setTimeout ( function ( ) {
1302
1306
dialog . showMessageBox ( win , {
1303
- title : ( store . has ( "personalization-notification.all-task-end" ) ?
1307
+ title : "wnr" ,
1308
+ message : ( store . has ( "personalization-notification.all-task-end" ) ?
1304
1309
store . get ( "personalization-notification.all-task-end" ) : i18n . __ ( 'all-task-end' ) ) ,
1305
1310
type : "warning" ,
1306
- message : ( store . has ( "personalization-notification.all-task-end-msg" ) ?
1311
+ detail : ( store . has ( "personalization-notification.all-task-end-msg" ) ?
1307
1312
store . get ( "personalization-notification.all-task-end-msg" ) : i18n . __ ( 'all-task-end-msg' ) ) ,
1308
1313
} ) . then ( function ( response ) {
1309
1314
win . loadFile ( 'index.html' ) ; //automatically back
1310
1315
setFullScreenMode ( false ) ;
1311
1316
if ( ! store . has ( "suggest-star" ) ) {
1312
1317
dialog . showMessageBox ( win , {
1313
- title : i18n . __ ( 'suggest-star' ) ,
1318
+ title : "wnr" ,
1319
+ message : i18n . __ ( 'suggest-star' ) ,
1314
1320
type : "warning" ,
1315
- message : i18n . __ ( 'suggest-star-msg' ) ,
1321
+ detail : i18n . __ ( 'suggest-star-msg' ) ,
1316
1322
checkboxLabel : i18n . __ ( 'suggest-star-chk' ) ,
1317
1323
checkboxChecked : true
1318
1324
} ) . then ( function ( msg ) {
@@ -1394,9 +1400,10 @@ ipcMain.on('alert', function (event, message) {
1394
1400
ipcMain . on ( 'delete-all-data' , function ( ) {
1395
1401
if ( settingsWin != null ) {
1396
1402
dialog . showMessageBox ( settingsWin , {
1397
- title : i18n . __ ( 'delete-all-data-dialog-box-title' ) ,
1403
+ title : "wnr" ,
1404
+ message : i18n . __ ( 'delete-all-data-dialog-box-title' ) ,
1398
1405
type : "warning" ,
1399
- message : i18n . __ ( 'delete-all-data-dialog-box-content' ) ,
1406
+ detail : i18n . __ ( 'delete-all-data-dialog-box-content' ) ,
1400
1407
checkboxLabel : i18n . __ ( 'delete-all-data-dialog-box-chk' ) ,
1401
1408
checkboxChecked : false
1402
1409
} ) . then ( function ( msg ) {
@@ -1414,9 +1421,10 @@ ipcMain.on('delete-all-data', function () {
1414
1421
function windowCloseChk ( ) {
1415
1422
if ( ( process . env . NODE_ENV != "development" ) && win != null )
1416
1423
dialog . showMessageBox ( win , {
1417
- title : i18n . __ ( 'window-close-dialog-box-title' ) ,
1424
+ title : "wnr" ,
1425
+ message : i18n . __ ( 'window-close-dialog-box-title' ) ,
1418
1426
type : "warning" ,
1419
- message : i18n . __ ( 'window-close-dialog-box-content' ) ,
1427
+ detail : i18n . __ ( 'window-close-dialog-box-content' ) ,
1420
1428
checkboxLabel : i18n . __ ( 'window-close-dialog-box-chk' ) ,
1421
1429
checkboxChecked : false
1422
1430
} ) . then ( function ( msger ) {
@@ -1652,9 +1660,10 @@ ipcMain.on('locker-passcode', function (event, message) {
1652
1660
if ( message == "empty" ) lockerMessage = i18n . __ ( 'locker-settings-empty-password' ) ;
1653
1661
if ( settingsWin != null )
1654
1662
dialog . showMessageBox ( settingsWin , {
1655
- title : i18n . __ ( 'locker-settings' ) ,
1663
+ title : "wnr" ,
1664
+ message : i18n . __ ( 'locker-settings' ) ,
1656
1665
type : "warning" ,
1657
- message : lockerMessage
1666
+ detail : lockerMessage
1658
1667
} ) . then ( function ( response ) {
1659
1668
if ( message == "lock-mode-on" || message == "lock-mode-off" ) {
1660
1669
if ( settingsWin != null ) settingsWin . close ( ) ;
0 commit comments