Skip to content

Commit 960880c

Browse files
committed
Fix now playing index bugs
1 parent a88e82c commit 960880c

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

main/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ app.on('window-all-closed', function allWindowsClosed () {
255255

256256
app.on('activate', function activate () {
257257
if (player.win === null) {
258+
al.recall()
258259
player.init()
259260
}
260261
globalShortcuts.reregister()

renderer/elements/playlist/track-view.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ class TrackView extends Component {
262262
if (this.isNewQuery !== state.library.isNewQuery) return true
263263
if (shouldColumnsUpdate(this.columns, state.library.columns)) return true
264264
// Mutate
265-
if (this.currentIndex !== state.library.currentIndex) {
265+
if (this.currentIndex !== state.library.currentIndex && !this.isNewQuery) {
266266
this.mutateCurrentIndex(state.library.currentIndex)
267267
}
268268
if (this.selectedIndex !== state.library.selectedIndex) {

renderer/stores/library.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ function getInitialState () {
1616
currentIndex: mainState.al.index,
1717
search: mainState.al.searchTerm,
1818
selectedIndex: null,
19-
isNewQuery: false,
20-
loading: false,
19+
isNewQuery: mainState.al.isNewQuery,
20+
loading: mainState.loading,
2121
columns: Array.from(COLUMNS).reduce((obj, col) => {
2222
obj[col] = true
2323
return obj

0 commit comments

Comments
 (0)