Skip to content

Commit

Permalink
Retain and restore last manual correlation path in Sparse to SIT dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
sorghumking committed Jul 20, 2018
1 parent 2cff6b8 commit ebee9e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions qtmain.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,15 @@ def initGUI(self):
def installPrefs(self):
self.secSummFile.setPathIfExists(self.parent.prefs.get("lastSectionSummaryPath"))
self.sparseFile.setPathIfExists(self.parent.prefs.get("lastSparseSplicePath"))
self.manCorrFile.setPathIfExists(self.parent.prefs.get("lastManualCorrelationPath"))
geom = self.parent.prefs.get("convertSparseWindowGeometry", None)
if geom is not None:
self.setGeometry(geom)

def savePrefs(self):
self.parent.prefs.set("lastSectionSummaryPath", self.secSummFile.getPath())
self.parent.prefs.set("lastSparseSplicePath", self.sparseFile.getPath())
self.parent.prefs.set("lastManualCorrelationPath", self.manCorrFile.getPath())
self.parent.prefs.set("convertSparseWindowGeometry", self.geometry())

def convert(self):
Expand Down

0 comments on commit ebee9e4

Please sign in to comment.