quick fix
This commit is contained in:
parent
fdd3a098a8
commit
ee34a52f1c
1 changed files with 3 additions and 3 deletions
|
|
@ -126,7 +126,7 @@ struct CompanionSettingsView: View {
|
|||
HStack {
|
||||
Image(systemName: "folder.badge.gearshape")
|
||||
.foregroundColor(fixLibraryStatus == .done ? .green : fixLibraryStatus == .failed ? .red : .orange)
|
||||
.symbolEffect(.pulse, isActive: fixLibraryStatus == .running)
|
||||
.symbolEffect(.pulse, isActive: fixLibraryStatus == .analyzing)
|
||||
VStack(alignment: .leading, spacing: 2) {
|
||||
Text("Fix Library Structure").foregroundColor(.white)
|
||||
Text("Only run once all tags are correct — moves every file to match its current tags.")
|
||||
|
|
@ -134,7 +134,7 @@ struct CompanionSettingsView: View {
|
|||
}
|
||||
}
|
||||
}
|
||||
.disabled(fixLibraryStatus == .running)
|
||||
.disabled(fixLibraryStatus == .analyzing)
|
||||
|
||||
if let msg = fixLibraryMessage {
|
||||
Text(msg)
|
||||
|
|
@ -199,7 +199,7 @@ struct CompanionSettingsView: View {
|
|||
// MARK: - Fix Library Structure
|
||||
|
||||
private func triggerFixLibrary() {
|
||||
fixLibraryStatus = .running
|
||||
fixLibraryStatus = .analyzing
|
||||
fixLibraryMessage = "Restructuring library on server..."
|
||||
Task {
|
||||
do {
|
||||
|
|
|
|||
Loading…
Reference in a new issue