Skip to content

Commit

Permalink
Remove default login configuration option.
Browse files Browse the repository at this point in the history
  • Loading branch information
ylangisc committed Jul 1, 2011
1 parent 3b3b5a5 commit cc87222
Show file tree
Hide file tree
Showing 5 changed files with 77 additions and 123 deletions.
2 changes: 0 additions & 2 deletions source/ch/cyberduck/ui/controller/IPreferencesView.cs
Expand Up @@ -31,7 +31,6 @@ internal interface IPreferencesView : IView
Protocol DefaultProtocol { set; get; }
Editor.AvailableEditor DefaultEditor { set; get; }
bool AlwaysUseDefaultEditor { set; get; }
string LoginName { set; get; }
bool ShowHiddenFiles { set; get; }
bool DoubleClickEditor { set; get; }
bool ReturnKeyRenames { set; get; }
Expand Down Expand Up @@ -143,7 +142,6 @@ internal interface IPreferencesView : IView
event VoidHandler UseKeychainChangedEvent;
event VoidHandler ConfirmDisconnectChangedEvent;
event VoidHandler DefaultProtocolChangedEvent;
event VoidHandler LoginNameChangedEvent;
event VoidHandler ShowHiddenFilesChangedEvent;
event VoidHandler DoubleClickEditorChangedEvent;
event VoidHandler ReturnKeyRenamesChangedEvent;
Expand Down
14 changes: 4 additions & 10 deletions source/ch/cyberduck/ui/controller/PreferencesController.cs
Expand Up @@ -15,19 +15,20 @@
// Bug fixes, suggestions and comments should be sent to:
// yves@cyberduck.ch
//

using System;
using System.Collections.Generic;
using System.Diagnostics;
using ch.cyberduck.core;
using Ch.Cyberduck.Core;
using ch.cyberduck.core.io;
using Ch.Cyberduck.Ui.Winforms;
using Ch.Cyberduck.Ui.Winforms.Controls;
using StructureMap;
using ch.cyberduck.core;
using ch.cyberduck.core.io;
using java.util;
using java.util.regex;
using org.apache.log4j;
using org.jets3t.service.model;
using StructureMap;
using Locale = ch.cyberduck.core.i18n.Locale;

namespace Ch.Cyberduck.Ui.Controller
Expand Down Expand Up @@ -62,7 +63,6 @@ private PreferencesController(IPreferencesView view)
View.DefaultEditorChangedEvent += View_DefaultEditorChangedEvent;
View.RepopulateEditorsEvent += View_RepopulateEditorsEvent;
View.AlwaysUseDefaultEditorChangedEvent += View_AlwaysUseDefaultEditorChangedEvent;
View.LoginNameChangedEvent += View_LoginNameChangedEvent;
View.ShowHiddenFilesChangedEvent += View_ShowHiddenFilesChangedEvent;
View.DoubleClickEditorChangedEvent += View_DoubleClickEditorChangedEvent;
View.ReturnKeyRenamesChangedEvent += View_ReturnKeyRenamesChangedEvent;
Expand Down Expand Up @@ -755,11 +755,6 @@ private void View_ShowHiddenFilesChangedEvent()
Preferences.instance().setProperty("browser.showHidden", View.ShowHiddenFiles);
}

private void View_LoginNameChangedEvent()
{
Preferences.instance().setProperty("connection.login.name", View.LoginName);
}

private void View_DefaultProtocolChangedEvent()
{
Protocol selected = View.DefaultProtocol;
Expand Down Expand Up @@ -854,7 +849,6 @@ private void Init()
PopulateDefaultProtocols();
View.DefaultProtocol =
ProtocolFactory.forName(Preferences.instance().getProperty("connection.protocol.default"));
View.LoginName = Preferences.instance().getProperty("connection.login.name");
View.InfoWindowShowsCurrentSelection =
Preferences.instance().getBoolean("browser.info.isInspector");
View.ShowHiddenFiles = Preferences.instance().getBoolean("browser.showHidden");
Expand Down

0 comments on commit cc87222

Please sign in to comment.