#6344 Persist clipboard sharing size settings
This commit is contained in:
parent
358641e58e
commit
dfcac4e90b
|
@ -120,6 +120,8 @@ void ServerConfig::saveSettings()
|
||||||
settings().setValue("ignoreAutoConfigClient", ignoreAutoConfigClient());
|
settings().setValue("ignoreAutoConfigClient", ignoreAutoConfigClient());
|
||||||
settings().setValue("disableLockToScreen", disableLockToScreen());
|
settings().setValue("disableLockToScreen", disableLockToScreen());
|
||||||
settings().setValue("enableDragAndDrop", enableDragAndDrop());
|
settings().setValue("enableDragAndDrop", enableDragAndDrop());
|
||||||
|
settings().setValue("clipboardSharing", clipboardSharing());
|
||||||
|
settings().setValue("clipboardSharingSize", QVariant::fromValue(clipboardSharingSize()));
|
||||||
|
|
||||||
writeSettings(settings(), switchCorners(), "switchCorner");
|
writeSettings(settings(), switchCorners(), "switchCorner");
|
||||||
|
|
||||||
|
@ -165,6 +167,9 @@ void ServerConfig::loadSettings()
|
||||||
setIgnoreAutoConfigClient(settings().value("ignoreAutoConfigClient").toBool());
|
setIgnoreAutoConfigClient(settings().value("ignoreAutoConfigClient").toBool());
|
||||||
setDisableLockToScreen(settings().value("disableLockToScreen", false).toBool());
|
setDisableLockToScreen(settings().value("disableLockToScreen", false).toBool());
|
||||||
setEnableDragAndDrop(settings().value("enableDragAndDrop", true).toBool());
|
setEnableDragAndDrop(settings().value("enableDragAndDrop", true).toBool());
|
||||||
|
setClipboardSharing(settings().value("clipboardSharing", true).toBool());
|
||||||
|
setClipboardSharingSize(settings().value("clipboardSharingSize",
|
||||||
|
(int) ServerConfig::defaultClipboardSharingSize()).toULongLong());
|
||||||
|
|
||||||
readSettings(settings(), switchCorners(), "switchCorner", false, NumSwitchCorners);
|
readSettings(settings(), switchCorners(), "switchCorner", false, NumSwitchCorners);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue