Skip to content

Commit

Permalink
fix add disable app drag lag issue (#355)
Browse files Browse the repository at this point in the history
* fix: add disable app by dragging lag issue

* fix: revert default disable app workaround and disableAutoSelect

* fix: revert workarounds and fix by disableAutoSelect
  • Loading branch information
phlpsong authored Jan 24, 2024
1 parent 6c837d4 commit c673f6c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Easydict/NewApp/View/SettingView/Tabs/DisabledAppTab.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,13 @@ import SwiftUI
private class DisabledAppViewModel: ObservableObject {
@Published var appModelList: [EZAppModel] = []
@Published var selectedAppModels: Set<EZAppModel> = []
@Published var isImporting = false
@Published var isShowImportErrorAlert = false
@Published var isImporting = false {
didSet {
// https://github.com/tisfeng/Easydict/issues/346
Configuration.shared.disabledAutoSelect = isImporting
}
}

init() {
fetchDisabledApps()
Expand Down

0 comments on commit c673f6c

Please sign in to comment.