Search in sources :

Example 1 with DisconnectBackgroundAction

use of ch.cyberduck.core.threading.DisconnectBackgroundAction in project cyberduck by iterate-ch.

the class BrowserController method disconnect.

/**
 * Unmount this session
 */
private void disconnect(final Runnable disconnected) {
    final InfoController c = InfoControllerFactory.get(this);
    if (null != c) {
        c.window().close();
    }
    this.background(new DisconnectBackgroundAction(this, pool) {

        @Override
        public void cleanup() {
            super.cleanup();
            pasteboard.clear();
            window.setDocumentEdited(false);
            disconnected.run();
        }
    });
}
Also used : DisconnectBackgroundAction(ch.cyberduck.core.threading.DisconnectBackgroundAction)

Aggregations

DisconnectBackgroundAction (ch.cyberduck.core.threading.DisconnectBackgroundAction)1