mirror of
https://github.com/Syncplay/syncplay
synced 2024-12-16 20:04:42 +00:00
Add --clear-gui-data support to GuiConfig
This commit is contained in:
parent
96d28b3bb4
commit
706953d758
@ -237,6 +237,15 @@ class ConfigDialog(QtGui.QDialog):
|
||||
|
||||
from syncplay import utils
|
||||
self.config = config
|
||||
self.datacleared = False
|
||||
if config['clearGUIData'] == True:
|
||||
settings = QSettings("Syncplay","PlayerList")
|
||||
settings.clear()
|
||||
settings = QSettings("Syncplay","MediaBrowseDialog")
|
||||
settings.clear()
|
||||
settings = QSettings("Syncplay","MainWindow")
|
||||
settings.clear()
|
||||
self.datacleared = True
|
||||
self.QtGui = QtGui
|
||||
self.error = error
|
||||
if sys.platform.startswith('linux'):
|
||||
@ -415,3 +424,6 @@ class ConfigDialog(QtGui.QDialog):
|
||||
self.runButton.setFocus()
|
||||
self.setFixedSize(self.sizeHint())
|
||||
self.setAcceptDrops(True)
|
||||
|
||||
if self.datacleared == True:
|
||||
QtGui.QMessageBox.information(self,"Syncplay", getMessage("en", "gui-data-cleared-notification"))
|
||||
|
Loading…
Reference in New Issue
Block a user