Load window state from self.settings

def loadSettings(self):
        """Load window state from self.settings"""
        self.settings.beginGroup('rampviewer')
        geometry = self.settings.value('geometry').toByteArray()
        self.settings.endGroup()

        self.restoreGeometry(geometry)