Skip to content

Commit

Permalink
feat(touchbar): browsing touchbar stop refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
YuRiJinX committed Sep 10, 2019
1 parent 6a6b742 commit 30e6c35
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/renderer/components/BrowsingView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ export default {
acceleratorAvailable: true,
oldDisplayId: -1,
backToLandingView: false,
// touchbar buttons
sidebarButton: null,
backwardButton: null,
forwardButton: null,
Expand Down Expand Up @@ -247,9 +248,15 @@ export default {
if (val) {
this.webInfo.hasVideo = false;
this.createTouchBar(false);
if (this.refreshButton) {
this.refreshButton.icon = this.createIcon('touchBar/stopRefresh.png');
}
this.showProgress = true;
this.progress = 70;
} else {
if (this.refreshButton) {
this.refreshButton.icon = this.createIcon('touchBar/refresh.png');
}
this.progress = 100;
setTimeout(() => {
this.showProgress = false;
Expand Down Expand Up @@ -754,9 +761,7 @@ export default {
});
this.refreshButton = new TouchBarButton({
icon: this.createIcon('touchBar/refresh.png'),
click: () => {
this.$bus.$emit('toggle-reload');
},
click: this.handleUrlReload,
});
// this.pipButton = enablePip ? new TouchBarButton({
// icon: this.createIcon('touchBar/pip.png'),
Expand Down
Binary file added static/touchBar/stopRefresh.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 30e6c35

Please sign in to comment.