PrefUI // Fix the methods for resetting paths.
This commit is contained in:
parent
100a16a9e6
commit
45232ca499
|
@ -80,13 +80,13 @@ struct VwrPrefPaneCassette: View {
|
||||||
} else {
|
} else {
|
||||||
IMEApp.buzz()
|
IMEApp.buzz()
|
||||||
if !bolPreviousPathValidity {
|
if !bolPreviousPathValidity {
|
||||||
LMMgr.resetCassettePath()
|
cassettePath = ""
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if !bolPreviousPathValidity {
|
if !bolPreviousPathValidity {
|
||||||
LMMgr.resetCassettePath()
|
cassettePath = ""
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -96,7 +96,7 @@ struct VwrPrefPaneCassette: View {
|
||||||
Text("...")
|
Text("...")
|
||||||
}
|
}
|
||||||
Button {
|
Button {
|
||||||
LMMgr.resetCassettePath()
|
cassettePath = ""
|
||||||
} label: {
|
} label: {
|
||||||
Text("×")
|
Text("×")
|
||||||
}
|
}
|
||||||
|
|
|
@ -96,13 +96,13 @@ struct VwrPrefPaneDictionary: View {
|
||||||
} else {
|
} else {
|
||||||
IMEApp.buzz()
|
IMEApp.buzz()
|
||||||
if !bolPreviousFolderValidity {
|
if !bolPreviousFolderValidity {
|
||||||
LMMgr.resetSpecifiedUserDataFolder()
|
userDataFolderSpecified = LMMgr.dataFolderPath(isDefaultFolder: true)
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if !bolPreviousFolderValidity {
|
if !bolPreviousFolderValidity {
|
||||||
LMMgr.resetSpecifiedUserDataFolder()
|
userDataFolderSpecified = LMMgr.dataFolderPath(isDefaultFolder: true)
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -112,8 +112,7 @@ struct VwrPrefPaneDictionary: View {
|
||||||
Text("...")
|
Text("...")
|
||||||
}
|
}
|
||||||
Button {
|
Button {
|
||||||
userDataFolderSpecified = ""
|
userDataFolderSpecified = LMMgr.dataFolderPath(isDefaultFolder: true)
|
||||||
LMMgr.resetSpecifiedUserDataFolder()
|
|
||||||
} label: {
|
} label: {
|
||||||
Text("↻")
|
Text("↻")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue