mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-23 23:06:39 +01:00
Update to latest netlayer version. Increase delay for tor settings
This commit is contained in:
parent
6b8276ba10
commit
41a48952b6
2 changed files with 6 additions and 6 deletions
|
@ -54,8 +54,7 @@ import javafx.scene.input.KeyEvent;
|
|||
import javafx.scene.layout.*;
|
||||
import javafx.scene.paint.Color;
|
||||
import javafx.scene.text.TextAlignment;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import javax.inject.Inject;
|
||||
import java.util.List;
|
||||
|
@ -63,8 +62,10 @@ import java.util.List;
|
|||
import static javafx.scene.layout.AnchorPane.*;
|
||||
|
||||
@FxmlView
|
||||
@Slf4j
|
||||
public class MainView extends InitializableView<StackPane, MainViewModel> {
|
||||
private static final Logger log = LoggerFactory.getLogger(MainView.class);
|
||||
// If after 20 sec we have not got connected we show "open network settings" button
|
||||
private final static int SHOW_TOR_SETTINGS_DELAY_SEC = 30;
|
||||
|
||||
public static StackPane getRootContainer() {
|
||||
return MainView.rootContainer;
|
||||
|
@ -485,11 +486,10 @@ public class MainView extends InitializableView<StackPane, MainViewModel> {
|
|||
splashP2PNetworkIcon.setManaged(false);
|
||||
HBox.setMargin(splashP2PNetworkIcon, new Insets(0, 0, 5, 0));
|
||||
|
||||
// If after 20 sec we have not got connected we show "open network settings" button
|
||||
Timer showTorNetworkSettingsTimer = UserThread.runAfter(() -> {
|
||||
showTorNetworkSettingsButton.setVisible(true);
|
||||
showTorNetworkSettingsButton.setManaged(true);
|
||||
}, 20);
|
||||
}, SHOW_TOR_SETTINGS_DELAY_SEC);
|
||||
|
||||
splashP2PNetworkIconIdListener = (ov, oldValue, newValue) -> {
|
||||
splashP2PNetworkIcon.setId(newValue);
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
<dependency>
|
||||
<groupId>com.github.JesusMcCloud.netlayer</groupId>
|
||||
<artifactId>tor.native</artifactId>
|
||||
<version>e7195748</version>
|
||||
<version>1c9d80e</version>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>org.slf4j</groupId>
|
||||
|
|
Loading…
Add table
Reference in a new issue