Skip to content

Commit

Permalink
fix: Resolve the issue of the probability of crashing when switching …
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
starhcq committed Sep 23, 2024
1 parent f248a38 commit 9f0a848
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
3 changes: 0 additions & 3 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,6 @@ int main(int argc, char *argv[])
.arg(app.applicationVersion());
qDebug() << "LogFile:" << DLogManager::getlogFilePath();

DLogManager::registerConsoleAppender();
DLogManager::registerFileAppender();

QQmlApplicationEngine engine;

if (!DGuiApplicationHelper::instance()->setSingleInstance(app.applicationName(), DGuiApplicationHelper::UserScope)) {
Expand Down
1 change: 1 addition & 0 deletions src/qml/SideBar/Sidebar.qml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import "../"
ScrollView {
id: sidebarScrollView
clip: true
wheelEnabled: false
signal sideBarListChanged(string type, string displayName)
property int currentImportCustomIndex: 0 //自动导入相册当前索引值
property int currentCustomIndex: 0 //自定义相册当前索引值
Expand Down
10 changes: 4 additions & 6 deletions src/qml/ThumbnailImageView/HaveImportedView/HaveImportedView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,11 @@ BaseView {
}

onVisibleChanged: {
if (visible && !GStatus.backingToMainAlbumView)
if (visible && !GStatus.backingToMainAlbumView) {
flushHaveImportedView()
if (show)
showAnimation.start()
}
}

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

onShowChanged: {
if (show)
showAnimation.start()
}

function setDataRange(str) {
importTimeLabel.text = str
}
Expand Down

0 comments on commit 9f0a848

Please sign in to comment.