Skip to content

Commit

Permalink
- listview bug
Browse files Browse the repository at this point in the history
  • Loading branch information
doctorrokter committed Jan 29, 2018
1 parent e11e962 commit 44e00ff
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 12 deletions.
3 changes: 2 additions & 1 deletion assets/.assets.index
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
1
92
93
sheets/FilePickersSheet.qml
sheets/ShareFolderSheet.qml
sheets/EditFolderMemberSheet.qml
Expand Down Expand Up @@ -92,3 +92,4 @@ images/ic_forward.png
images/ic_view_grid.png
images/ic_doctype_video.png
images/ic_edit.png
images/ic_set_as_default.png
18 changes: 18 additions & 0 deletions assets/pages/FolderPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,18 @@ Page {
onTimeout: {
dataModel.clear();
dataModel.append(root.filteredData);
root.downListView();
}
},

Timer {
id: listViewTimer

interval: 500
singleShot: true

onTimeout: {
listView.down();
}
},

Expand Down Expand Up @@ -599,6 +611,7 @@ Page {
root.cursor = cursor;
root.hasMore = hasMore;
root.append(files);
root.downListView();
}
}

Expand Down Expand Up @@ -691,6 +704,7 @@ Page {
}
dataModel.clear();
dataModel.append(files);
root.downListView();
}

function propChanged(key, val) {
Expand Down Expand Up @@ -817,6 +831,10 @@ Page {
}
}

function downListView() {
listViewTimer.start();
}

function cleanUp() {
_qdropbox.popPath();
_qdropbox.listFolderLoaded.disconnect(root.listFolderLoaded);
Expand Down
2 changes: 1 addition & 1 deletion buildnum
Original file line number Diff line number Diff line change
@@ -1 +1 @@
877
881
10 changes: 5 additions & 5 deletions translations/Basket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,13 +305,13 @@ Copy this link and open it in any modern browser (mobile or desktop):</source>
</message>
<message>
<location filename="../assets/pages/FolderPage.qml" line="340"/>
<location filename="../assets/pages/FolderPage.qml" line="702"/>
<location filename="../assets/pages/FolderPage.qml" line="716"/>
<source>List</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/pages/FolderPage.qml" line="342"/>
<location filename="../assets/pages/FolderPage.qml" line="709"/>
<location filename="../assets/pages/FolderPage.qml" line="723"/>
<source>Grid</source>
<translation type="unfinished"></translation>
</message>
Expand Down Expand Up @@ -341,8 +341,8 @@ Copy this link and open it in any modern browser (mobile or desktop):</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/pages/FolderPage.qml" line="581"/>
<location filename="../assets/pages/FolderPage.qml" line="582"/>
<location filename="../assets/pages/FolderPage.qml" line="593"/>
<location filename="../assets/pages/FolderPage.qml" line="594"/>
<source>GB</source>
<translation type="unfinished"></translation>
</message>
Expand Down Expand Up @@ -393,8 +393,8 @@ Copy this link and open it in any modern browser (mobile or desktop):</source>
<context>
<name>HighCover</name>
<message>
<location filename="../assets/pages/HighCover.qml" line="99"/>
<location filename="../assets/pages/HighCover.qml" line="100"/>
<location filename="../assets/pages/HighCover.qml" line="101"/>
<source>GB</source>
<translation type="unfinished"></translation>
</message>
Expand Down
10 changes: 5 additions & 5 deletions translations/Basket_ru.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,13 +316,13 @@ Copy this link and open it in any modern browser (mobile or desktop):</source>
</message>
<message>
<location filename="../assets/pages/FolderPage.qml" line="340"/>
<location filename="../assets/pages/FolderPage.qml" line="702"/>
<location filename="../assets/pages/FolderPage.qml" line="716"/>
<source>List</source>
<translation type="unfinished">Список</translation>
</message>
<message>
<location filename="../assets/pages/FolderPage.qml" line="342"/>
<location filename="../assets/pages/FolderPage.qml" line="709"/>
<location filename="../assets/pages/FolderPage.qml" line="723"/>
<source>Grid</source>
<translation type="unfinished">Сетка</translation>
</message>
Expand Down Expand Up @@ -352,8 +352,8 @@ Copy this link and open it in any modern browser (mobile or desktop):</source>
<translation type="unfinished">Сортировать по:</translation>
</message>
<message>
<location filename="../assets/pages/FolderPage.qml" line="581"/>
<location filename="../assets/pages/FolderPage.qml" line="582"/>
<location filename="../assets/pages/FolderPage.qml" line="593"/>
<location filename="../assets/pages/FolderPage.qml" line="594"/>
<source>GB</source>
<translation type="unfinished">ГБ</translation>
</message>
Expand Down Expand Up @@ -404,8 +404,8 @@ Copy this link and open it in any modern browser (mobile or desktop):</source>
<context>
<name>HighCover</name>
<message>
<location filename="../assets/pages/HighCover.qml" line="99"/>
<location filename="../assets/pages/HighCover.qml" line="100"/>
<location filename="../assets/pages/HighCover.qml" line="101"/>
<source>GB</source>
<translation type="unfinished">ГБ</translation>
</message>
Expand Down

0 comments on commit 44e00ff

Please sign in to comment.