Skip to content

Commit

Permalink
Merge pull request #607 from townmi/refactor-disableMenu
Browse files Browse the repository at this point in the history
feet(menu): add shortcut for windowRotate && i18n
  • Loading branch information
ipy authored May 8, 2019
2 parents 613aebc + edf9b3d commit ff619b1
Show file tree
Hide file tree
Showing 8 changed files with 1,767 additions and 1,799 deletions.
509 changes: 252 additions & 257 deletions src/renderer/locales/lang/ar.json

Large diffs are not rendered by default.

509 changes: 252 additions & 257 deletions src/renderer/locales/lang/en.json

Large diffs are not rendered by default.

509 changes: 252 additions & 257 deletions src/renderer/locales/lang/es.json

Large diffs are not rendered by default.

509 changes: 252 additions & 257 deletions src/renderer/locales/lang/ja.json

Large diffs are not rendered by default.

509 changes: 252 additions & 257 deletions src/renderer/locales/lang/ko.json

Large diffs are not rendered by default.

509 changes: 252 additions & 257 deletions src/renderer/locales/lang/zhCN.json

Large diffs are not rendered by default.

509 changes: 252 additions & 257 deletions src/renderer/locales/lang/zhTW.json

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions src/renderer/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -905,6 +905,7 @@ new Vue({
{
label: this.$t('msg.playback.windowRotate'),
id: 'windowRotate',
accelerator: 'CmdOrCtrl+L',
click: () => {
this.windowRotate();
},
Expand Down Expand Up @@ -1227,6 +1228,8 @@ new Vue({
});
item.enabled = flag;
});
// windowRotate 菜单状态随着路由状态一起变
this.menu.getMenuItemById('windowRotate').enabled = flag;
},
processRecentPlay(recentPlayData) {
const menuRecentData = new Map([
Expand Down

0 comments on commit ff619b1

Please sign in to comment.