Commit 3fa003f7 authored by jetrii's avatar jetrii
Browse files

Changing XML settings now informs user about a required restart of Coherence.

parent e246826c
import sys
from PyQt4 import QtGui, QtCore
from XMLDirector import XMLDirector
from OSHandle import OSHandle
class MediaConfigPanel(QtGui.QWidget):
def __init__(self, parent):
QtGui.QWidget.__init__(self, parent)
self.parent = parent
#default size = 490 x 350
#Sharing checkbox
......@@ -110,6 +111,11 @@ class MediaConfigPanel(QtGui.QWidget):
configManager.writeLocalContentList(folders, isActive)
self.applyButton.setEnabled(False)
#Warn about required restart
osHandle = OSHandle()
osHandle.warnAboutRestart()
def resizeEvent(self,event):
self.moveComponents()
......
......@@ -108,14 +108,14 @@ class SettingsConfigPanel(QtGui.QWidget):
configManager.writeSettingConfig(settings)
oshandle = OSHandle()
oshandle.warnAboutRestart()
def initializeSettings(self, settings):
self.dbusCheckBox.setChecked(settings['dbus'])
self.webuiCheckBox.setChecked(settings['webui'])
self.cntrlCheckBox.setChecked(settings['control'])
def paintEvent(self, event):
paint = QtGui.QPainter()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment