Skip to content
This repository has been archived by the owner on Sep 1, 2023. It is now read-only.

Commit

Permalink
feat(settings): removed platform-dependent layout inversion
Browse files Browse the repository at this point in the history
  • Loading branch information
herteleo committed Apr 20, 2019
1 parent e31dd1a commit 34ba2bf
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/App.vue
Expand Up @@ -37,7 +37,7 @@ export default {
mixins: [NotificationSchedule],
computed: {
isLayoutInverted() {
return this.$store.getters['Settings/isLayoutInvertedForOs'];
return this.$store.getters['Settings/isLayoutInverted'];
},
},
};
Expand Down
2 changes: 1 addition & 1 deletion src/components/TabHeader.vue
Expand Up @@ -57,7 +57,7 @@ export default {
},
computed: {
isLayoutInverted() {
return this.$store.getters['Settings/isLayoutInvertedForOs'];
return this.$store.getters['Settings/isLayoutInverted'];
},
pageState() {
return this.$store.getters['Pages/state'](this.item.id);
Expand Down
2 changes: 1 addition & 1 deletion src/components/WindowControls.vue
Expand Up @@ -58,7 +58,7 @@ export default {
return this.$electron.remote.getCurrentWindow();
},
isLayoutInverted() {
return this.$store.getters['Settings/isLayoutInvertedForOs'];
return this.$store.getters['Settings/isLayoutInverted'];
},
},
created() {
Expand Down
8 changes: 0 additions & 8 deletions src/store/modules/Settings.js
Expand Up @@ -12,14 +12,6 @@ export default {
isLayoutInverted({ isLayoutInverted }) {
return isLayoutInverted;
},
isLayoutInvertedForOs({ isLayoutInverted }) {
switch (process.platform) {
case 'darwin':
return isLayoutInverted;
default:
return !isLayoutInverted;
}
},
muteOnWindowBlur({ muteOnWindowBlur }) {
return muteOnWindowBlur;
},
Expand Down

0 comments on commit 34ba2bf

Please sign in to comment.