Merge pull request #289 from mssalvatore/issue_278

Fix #278 "Enable Clipboard Sharing" always reset after restart
This commit is contained in:
Adrian Lucrèce Céleste 2019-04-17 12:24:22 -04:00 committed by GitHub
commit 929a8e133d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -117,6 +117,7 @@ void ServerConfig::saveSettings()
settings().setValue("switchCornerSize", switchCornerSize());
settings().setValue("ignoreAutoConfigClient", ignoreAutoConfigClient());
settings().setValue("enableDragAndDrop", enableDragAndDrop());
settings().setValue("clipboardSharing", clipboardSharing());
writeSettings(settings(), switchCorners(), "switchCorner");
@ -161,6 +162,7 @@ void ServerConfig::loadSettings()
setSwitchCornerSize(settings().value("switchCornerSize").toInt());
setIgnoreAutoConfigClient(settings().value("ignoreAutoConfigClient").toBool());
setEnableDragAndDrop(settings().value("enableDragAndDrop", true).toBool());
setClipboardSharing(settings().value("clipboardSharing", true).toBool());
readSettings(settings(), switchCorners(), "switchCorner", false, NumSwitchCorners);