Skip to content
Permalink
Browse files

Merge pull request #5509 from borysiasty/settings

Remove dead code
  • Loading branch information
borysiasty committed Nov 1, 2017
2 parents 5d2c39b + 2d30c11 commit 5fe43efe7234254a3a7e0b8bcaf62a4697377261
Showing with 0 additions and 9 deletions.
  1. +0 −9 python/pyplugin_installer/qgsplugininstallerfetchingdialog.py
@@ -26,7 +26,6 @@

from qgis.PyQt.QtCore import QByteArray
from qgis.PyQt.QtWidgets import QDialog, QTreeWidgetItem
from qgis.core import QgsSettings

from .ui_qgsplugininstallerfetchingbase import Ui_QgsPluginInstallerFetchingDialogBase
from .installer_data import repositories
@@ -54,14 +53,6 @@ def __init__(self, parent):
repositories.repositoryFetched.connect(self.repositoryFetched)
repositories.anythingChanged.connect(self.displayState)

settings = QgsSettings()
self.restoreGeometry(settings.value("/Qgis/plugin-installer/fetching_geometry", QByteArray()))

def closeEvent(self, event):
settings = QgsSettings()
settings.setValue("/Qgis/plugin-installer/fetching_geometry", self.saveGeometry())
super(QgsPluginInstallerFetchingDialog, self).closeEvent(event)

# ----------------------------------------- #
def displayState(self, key, state, state2=None):
messages = [self.tr("Success"), self.tr("Resolving host name..."), self.tr("Connecting..."), self.tr("Host connected. Sending request..."), self.tr("Downloading data..."), self.tr("Idle"), self.tr("Closing connection..."), self.tr("Error")]

0 comments on commit 5fe43ef

Please sign in to comment.
You can’t perform that action at this time.