Skip to content

Commit fb8c9e7

Browse files
committed
fix: Resolve the issue of the probability of crashing when switching to an imported view
Resolve the issue of the probability of crashing when switching to an imported view Log: Resolve the issue of the probability of crashing when switching to an imported view Bug: https://pms.uniontech.com/bug-view-271803.html
1 parent f248a38 commit fb8c9e7

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

src/main.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,6 @@ int main(int argc, char *argv[])
7474
.arg(app.applicationVersion());
7575
qDebug() << "LogFile:" << DLogManager::getlogFilePath();
7676

77-
DLogManager::registerConsoleAppender();
78-
DLogManager::registerFileAppender();
79-
8077
QQmlApplicationEngine engine;
8178

8279
if (!DGuiApplicationHelper::instance()->setSingleInstance(app.applicationName(), DGuiApplicationHelper::UserScope)) {

src/qml/SideBar/Sidebar.qml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import "../"
1616
ScrollView {
1717
id: sidebarScrollView
1818
clip: true
19+
wheelEnabled: false
1920
signal sideBarListChanged(string type, string displayName)
2021
property int currentImportCustomIndex: 0 //自动导入相册当前索引值
2122
property int currentCustomIndex: 0 //自定义相册当前索引值

src/qml/ThumbnailImageView/HaveImportedView/HaveImportedView.qml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,11 @@ BaseView {
3838
}
3939

4040
onVisibleChanged: {
41-
if (visible && !GStatus.backingToMainAlbumView)
41+
if (visible && !GStatus.backingToMainAlbumView) {
4242
flushHaveImportedView()
43+
if (show)
44+
showAnimation.start()
45+
}
4346
}
4447

4548
// 筛选类型改变处理事件
@@ -176,11 +179,6 @@ BaseView {
176179
easing.type: Easing.OutExpo
177180
}
178181

179-
onShowChanged: {
180-
if (show)
181-
showAnimation.start()
182-
}
183-
184182
function setDataRange(str) {
185183
importTimeLabel.text = str
186184
}

0 commit comments

Comments
 (0)