MCPcopy Create free account
hub / github.com/Syncplay/syncplay / saveSettings

Method saveSettings

syncplay/ui/gui.py:2069–2087  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2067 self.playlist.remove_selected_items()
2068
2069 def saveSettings(self):
2070 settings = QSettings("Syncplay", "MainWindow")
2071 settings.beginGroup("MainWindow")
2072 settings.setValue("size", self.size())
2073 settings.setValue("pos", self.pos())
2074 settings.setValue("showPlaybackButtons", self.playbackAction.isChecked())
2075 settings.setValue("showAutoPlayButton", self.autoplayAction.isChecked())
2076 settings.setValue("hideEmptyRooms", self.hideEmptyRoomsAction.isChecked())
2077 settings.setValue("autoplayChecked", self.autoplayPushButton.isChecked())
2078 settings.setValue("autoplayMinUsers", self.autoplayThresholdSpinbox.value())
2079 settings.endGroup()
2080 settings = QSettings("Syncplay", "Interface")
2081 settings.beginGroup("Update")
2082 settings.setValue("lastCheckedQt", self.lastCheckedForUpdates)
2083 settings.endGroup()
2084 settings.beginGroup("PublicServerList")
2085 if self.publicServerList:
2086 settings.setValue("publicServers", self.publicServerList)
2087 settings.endGroup()
2088
2089 def loadSettings(self):
2090 settings = QSettings("Syncplay", "MainWindow")

Callers 1

closeEventMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected