Skip to content

Commit

Permalink
Merge pull request #5509 from borysiasty/settings
Browse files Browse the repository at this point in the history
Remove dead code
  • Loading branch information
borysiasty committed Nov 1, 2017
2 parents 5d2c39b + 2d30c11 commit 5fe43ef
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions python/pyplugin_installer/qgsplugininstallerfetchingdialog.py
Expand Up @@ -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
Expand Down Expand Up @@ -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")]
Expand Down

0 comments on commit 5fe43ef

Please sign in to comment.