support UTF-8 in persona names
This commit is contained in:
@@ -97,9 +97,6 @@ class ContentPanelController {
|
||||
}
|
||||
|
||||
void saveMuWireSettings() {
|
||||
File f = new File(core.home, "MuWire.properties")
|
||||
f.withOutputStream {
|
||||
core.muOptions.write(it)
|
||||
}
|
||||
core.saveMuSettings()
|
||||
}
|
||||
}
|
@@ -299,10 +299,7 @@ class MainFrameController {
|
||||
}
|
||||
|
||||
void saveMuWireSettings() {
|
||||
File f = new File(core.home, "MuWire.properties")
|
||||
f.withOutputStream {
|
||||
core.muOptions.write(it)
|
||||
}
|
||||
core.saveMuSettings()
|
||||
}
|
||||
|
||||
void mvcGroupInit(Map<String, String> args) {
|
||||
|
@@ -137,10 +137,7 @@ class OptionsController {
|
||||
model.trustListInterval = trustListInterval
|
||||
settings.trustListInterval = Integer.parseInt(trustListInterval)
|
||||
|
||||
File settingsFile = new File(core.home, "MuWire.properties")
|
||||
settingsFile.withOutputStream {
|
||||
settings.write(it)
|
||||
}
|
||||
core.saveMuSettings()
|
||||
|
||||
// UI Setttings
|
||||
|
||||
|
@@ -41,9 +41,9 @@ class Ready extends AbstractLifecycleHandler {
|
||||
def propsFile = new File(home, "MuWire.properties")
|
||||
if (propsFile.exists()) {
|
||||
log.info("loading existing props file")
|
||||
propsFile.withInputStream {
|
||||
propsFile.withReader("UTF-8", {
|
||||
props.load(it)
|
||||
}
|
||||
})
|
||||
props = new MuWireSettings(props)
|
||||
if (props.incompleteLocation == null)
|
||||
props.incompleteLocation = new File(home, "incompletes")
|
||||
@@ -90,9 +90,9 @@ class Ready extends AbstractLifecycleHandler {
|
||||
props.downloadLocation = chooser.getSelectedFile()
|
||||
}
|
||||
|
||||
propsFile.withOutputStream {
|
||||
propsFile.withPrintWriter("UTF-8", {
|
||||
props.write(it)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Core core
|
||||
|
Reference in New Issue
Block a user