Skip to content

Commit

Permalink
Remove longpress to open advanced search, breaks back button?
Browse files Browse the repository at this point in the history
  • Loading branch information
CDrummond committed Mar 6, 2021
1 parent 27b0eec commit bc599ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
2.3.3
-----
1. Fix blank queue, etc.
2. Remove longpress to open advanced search, breaks back button?

2.3.2
-----
Expand Down
10 changes: 1 addition & 9 deletions MaterialSkin/HTML/material/html/js/browse-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ var lmsBrowse = Vue.component("lms-browse", {
</v-btn>
</template>
<v-divider vertical v-if="desktopLayout && settingsMenuActions.length>0"></v-divider>
<v-btn :title="ACTIONS[SEARCH_LIB_ACTION].title" flat icon class="toolbar-button" v-longpress="searchLib" id="search-btn"><v-icon>{{ACTIONS[SEARCH_LIB_ACTION].icon}}</v-icon></v-btn>
<v-btn :title="ACTIONS[SEARCH_LIB_ACTION].title" flat icon class="toolbar-button" @click.stop="itemAction(SEARCH_LIB_ACTION, $event)"><v-icon>{{ACTIONS[SEARCH_LIB_ACTION].icon}}</v-icon></v-btn>
</v-layout>
</div>
<v-icon class="browse-progress" v-if="fetchingItems" color="primary">refresh</v-icon>
Expand Down Expand Up @@ -736,13 +736,6 @@ var lmsBrowse = Vue.component("lms-browse", {
browseItemAction(this, SEARCH_LIB_ACTION);
}
},
searchLib(longpress) {
if (longpress) {
bus.$emit('dlg.open', 'advancedsearch', true);
} else {
this.itemAction(SEARCH_LIB_ACTION);
}
},
itemAction(act, item, index, event) {
browseItemAction(this, act, item, index, event);
},
Expand Down Expand Up @@ -784,7 +777,6 @@ var lmsBrowse = Vue.component("lms-browse", {
} else if (!IS_MOBILE && this.subtitleClickable && item.id && item.artist_id && item.id.startsWith("album_id:")) {
if (undefined!=item.artist_ids && item.artist_ids.length>1) {
var entries = [];
console.log(item.artist_ids, item.artist_ids.length);
for (var i=0, len=item.artist_ids.length; i<len; ++i) {
entries.push({id:"artist_id:"+item.artist_ids[i], title:item.artists[i], stdItem:STD_ITEM_ARTIST});
}
Expand Down

0 comments on commit bc599ba

Please sign in to comment.