Skip to content

Commit

Permalink
Refresh columns draw after changing the setting
Browse files Browse the repository at this point in the history
  • Loading branch information
Bionus committed Oct 29, 2020
1 parent 0bc69a4 commit 70c58a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/gui-qml/src/components/SearchScreen.qml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ Page {
columns: gSettings.resultsColumnCount.value
model: results

onColumnsChanged: resultsRefresher.restart()

delegate: Image {
source: modelData.previewUrl
fillMode: Image.PreserveAspectFit
Expand Down
2 changes: 1 addition & 1 deletion src/gui-qml/src/main-screen.qml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ ApplicationWindow {
}
}

property int backPressed: 0
property double backPressed: 0
Keys.onReleased: {
if (event.key === Qt.Key_Back || event.key === Qt.Key_Escape) {
var now = new Date().getTime()
Expand Down

0 comments on commit 70c58a6

Please sign in to comment.