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