@@ -138,6 +138,7 @@ def createSettingsArea(self):
138138 self .createLocalSyncPathInput ()
139139 settingsBox .setLayout (self .settingsBoxLayout )
140140 self .contentLayout .addWidget (settingsBox )
141+ self .createChangeMode ()
141142
142143 def createAboutArea (self ):
143144 aboutBox = QtWidgets .QGroupBox ("About" )
@@ -171,6 +172,24 @@ def createLocalSyncPathInput(self):
171172
172173 self .settingsBoxLayout .addLayout (rowLayout )
173174
175+ def createChangeMode (self ):
176+ rowLayout = QtWidgets .QHBoxLayout ()
177+
178+ syncMode = QtWidgets .QLabel ("Sync Mode" )
179+
180+ self .comboBox = QtWidgets .QComboBox (self )
181+ self .comboBox .addItem ("Server > Client" )
182+ self .comboBox .addItem ("Client > Server" )
183+ self .comboBox .addItem ("Bidirectional" )
184+ self .comboBox .setCurrentText (LocalAppManager .getSetting ("syncMode" ))
185+
186+ rowLayout .addWidget (syncMode )
187+ rowLayout .addWidget (self .comboBox )
188+ self .settingsBoxLayout .addLayout (rowLayout )
189+
190+ def getSyncMode (self ):
191+ return self .comboBox .currentText ()
192+
174193 def getLocalSyncPathInput (self ):
175194 return self .localSyncPathInput .text ()
176195
@@ -186,6 +205,7 @@ def clickedSave(self):
186205
187206 settings ["syncFolderPath" ] = self .getLocalSyncPathInput ()
188207 settings ["notToSyncFolders" ] = self .getFoldersNotToSync ()
208+ settings ["syncMode" ] = self .getSyncMode ()
189209
190210 LocalAppManager .saveSettings (settings )
191211
0 commit comments