Skip to content

Commit

Permalink
App: show fullscreen-exit icon when already in fullscreen
Browse files Browse the repository at this point in the history
  • Loading branch information
theMK2k committed Sep 26, 2020
1 parent 320aba9 commit 0fd2dc3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1064,7 +1064,8 @@
style="margin-left: 16px; margin-right: -8px"
v-on:click="toggleFullScreen"
>
<v-icon>mdi-fullscreen</v-icon>
<v-icon v-show="isFullScreen">mdi-fullscreen-exit</v-icon>
<v-icon v-show="!isFullScreen">mdi-fullscreen</v-icon>
</v-btn>
</span>
</template>
Expand Down Expand Up @@ -1259,6 +1260,7 @@ export default {
source: String,
},
data: () => ({
isFullScreen: true,
showLoadingOverlay: false,
shared,
searchText: null,
Expand Down Expand Up @@ -2489,6 +2491,8 @@ export default {
},
toggleFullScreen() {
this.isFullScreen = !remote.getCurrentWindow().isFullScreen();
remote
.getCurrentWindow()
.setFullScreen(!remote.getCurrentWindow().isFullScreen());
Expand Down

0 comments on commit 0fd2dc3

Please sign in to comment.