From b09b33ba2fea8afa5708a8035d7da194c0264c38 Mon Sep 17 00:00:00 2001 From: Pablo Gamito Date: Fri, 5 Jun 2020 15:46:59 +0100 Subject: [PATCH] Don't show video overlay when no video is present Test: Manual Change-Id: Ib88cd8a6d8d0d89b32e20dd7e151166287628d53 --- tools/winscope/src/App.vue | 2 ++ tools/winscope/src/BottomNavigation.vue | 1 + tools/winscope/yarn.lock | 7 ++++++- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/tools/winscope/src/App.vue b/tools/winscope/src/App.vue index 917919a71..628885fce 100644 --- a/tools/winscope/src/App.vue +++ b/tools/winscope/src/App.vue @@ -95,6 +95,8 @@ export default { this.files.forEach(function(item) { item.destroy(); }) this.files = []; this.activeDataView = null; + this.activeFile = null; + this.video = null; }, onDataViewFocus(file) { this.activeFile = file; diff --git a/tools/winscope/src/BottomNavigation.vue b/tools/winscope/src/BottomNavigation.vue index d329b6d0c..f7bde044f 100644 --- a/tools/winscope/src/BottomNavigation.vue +++ b/tools/winscope/src/BottomNavigation.vue @@ -20,6 +20,7 @@ class="video-overlay" v-show="minimized && showVideoOverlay" position="bottomLeft" + v-if="video" >