Compare commits

..

4 Commits

Author SHA1 Message Date
Zlatin Balevsky
c25546e1e1 Release 0.7.1 2020-05-29 12:06:53 +01:00
Zlatin Balevsky
f9fb9e4f07 get rid of dead code 2020-05-29 12:04:55 +01:00
Zlatin Balevsky
72f2b2bd37 fix manual searching for updates 2020-05-29 12:03:09 +01:00
Zlatin Balevsky
eb242b0889 reduce default speed smoothing interval 2020-05-29 11:14:56 +01:00
6 changed files with 5 additions and 33 deletions

View File

@@ -32,7 +32,7 @@ import com.muwire.core.UILoadedEvent
import com.muwire.core.files.AllFilesLoadedEvent
class CliLanterna {
private static final String MW_VERSION = "0.7.0"
private static final String MW_VERSION = "0.7.1"
private static volatile Core core

View File

@@ -546,7 +546,7 @@ public class Core {
}
}
Core core = new Core(props, home, "0.7.0")
Core core = new Core(props, home, "0.7.1")
core.startServices()
// ... at the end, sleep or execute script

View File

@@ -104,7 +104,7 @@ class MuWireSettings {
defaultFeedSequential = Boolean.valueOf(props.getProperty("defaultFeedSequential", "false"))
defaultFeedUpdateInterval = Integer.valueOf(props.getProperty("defaultFeedUpdateInterval", "60000"))
speedSmoothSeconds = Integer.valueOf(props.getProperty("speedSmoothSeconds","60"))
speedSmoothSeconds = Integer.valueOf(props.getProperty("speedSmoothSeconds","10"))
totalUploadSlots = Integer.valueOf(props.getProperty("totalUploadSlots","-1"))
uploadSlotsPerUser = Integer.valueOf(props.getProperty("uploadSlotsPerUser","-1"))
startChatServer = Boolean.valueOf(props.getProperty("startChatServer","false"))

View File

@@ -1,5 +1,5 @@
group = com.muwire
version = 0.7.0
version = 0.7.1
i2pVersion = 0.9.46
groovyVersion = 2.4.15
slf4jVersion = 1.7.25

View File

@@ -151,6 +151,7 @@ class MainFrameController {
params["search-terms"] = tabTitle
params["uuid"] = uuid.toString()
params["core"] = core
params["settings"] = view.settings
def group = mvcGroup.createMVCGroup("SearchTab", uuid.toString(), params)
model.results[uuid.toString()] = group

View File

@@ -46,8 +46,6 @@ class Ready extends AbstractLifecycleHandler {
propsFile.withReader("UTF-8", {
props.load(it)
})
if (!props.containsKey("nickname"))
props.setProperty("nickname", selectNickname())
props = new MuWireSettings(props)
if (props.incompleteLocation == null)
props.incompleteLocation = new File(home, "incompletes")
@@ -107,32 +105,5 @@ class Ready extends AbstractLifecycleHandler {
System.exit(0)
}
}
private String selectNickname() {
String nickname
while (true) {
nickname = JOptionPane.showInputDialog(null,
"Your nickname is displayed when you send search results so other MuWire users can choose to trust you",
"Please choose a nickname", JOptionPane.PLAIN_MESSAGE)
if (nickname == null) {
JOptionPane.showMessageDialog(null, "MuWire cannot start without a nickname and will now exit", JOptionPane.PLAIN_MESSAGE)
System.exit(0)
}
if (nickname.trim().length() == 0) {
JOptionPane.showMessageDialog(null, "Nickname cannot be empty", "Select another nickname",
JOptionPane.WARNING_MESSAGE)
continue
}
if (!DataUtil.isValidName(nickname)) {
JOptionPane.showMessageDialog(null,
"Nickname cannot contain any of ${Constants.INVALID_NICKNAME_CHARS} and must be no longer than ${Constants.MAX_NICKNAME_LENGTH} characters. Choose another.",
"Select another nickname", JOptionPane.WARNING_MESSAGE)
continue
}
nickname = nickname.trim()
break
}
nickname
}
}