mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-05-19 11:11:28 +00:00
moving the nioAdapterImpl to the commons package
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
package org.cryptomator.common.settings;
|
||||
|
||||
public enum NioAdapterImpl {
|
||||
|
||||
WEBDAV,
|
||||
FUSE
|
||||
|
||||
}
|
||||
@@ -30,7 +30,7 @@ public class Settings {
|
||||
public static final int DEFAULT_NUM_TRAY_NOTIFICATIONS = 3;
|
||||
public static final String DEFAULT_GVFS_SCHEME = "dav";
|
||||
public static final boolean DEFAULT_DEBUG_MODE = false;
|
||||
public static final String DEFAULT_NIO_ADAPTER = "WEBDAV";
|
||||
public static final String DEFAULT_NIO_ADAPTER = NioAdapterImpl.WEBDAV.name();
|
||||
|
||||
private final ObservableList<VaultSettings> directories = FXCollections.observableArrayList(VaultSettings::observables);
|
||||
private final BooleanProperty checkForUpdates = new SimpleBooleanProperty(DEFAULT_CHECK_FOR_UDPATES);
|
||||
|
||||
@@ -19,7 +19,7 @@ import javafx.scene.layout.GridPane;
|
||||
import org.apache.commons.lang3.SystemUtils;
|
||||
import org.cryptomator.common.settings.Settings;
|
||||
import org.cryptomator.ui.l10n.Localization;
|
||||
import org.cryptomator.ui.model.NioAdapterImpl;
|
||||
import org.cryptomator.common.settings.NioAdapterImpl;
|
||||
|
||||
import com.google.common.base.CharMatcher;
|
||||
import com.google.common.base.Strings;
|
||||
@@ -138,8 +138,8 @@ public class SettingsController implements ViewController {
|
||||
}
|
||||
|
||||
private void changeNioView(String newVal) {
|
||||
fuseNioAdapter.setVisible(newVal.equalsIgnoreCase("FUSE"));
|
||||
webdavNioAdapter.setVisible(newVal.equalsIgnoreCase("WEBDAV"));
|
||||
fuseNioAdapter.setVisible(newVal.equalsIgnoreCase(NioAdapterImpl.FUSE.name()));
|
||||
webdavNioAdapter.setVisible(newVal.equalsIgnoreCase(NioAdapterImpl.WEBDAV.name()));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
package org.cryptomator.ui.model;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
public enum NioAdapterImpl {
|
||||
|
||||
WEBDAV,
|
||||
FUSE
|
||||
|
||||
}
|
||||
@@ -12,7 +12,7 @@ import java.util.Objects;
|
||||
|
||||
import javax.inject.Scope;
|
||||
|
||||
import org.apache.commons.lang3.SystemUtils;
|
||||
import org.cryptomator.common.settings.NioAdapterImpl;
|
||||
import org.cryptomator.common.settings.Settings;
|
||||
import org.cryptomator.common.settings.VaultSettings;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user