mirror of
https://github.com/debauchee/barrier.git
synced 2026-11-03 14:04:19 +08:00
#6344 Ensure setting clipboard size limit to 0 disables clipboard sharing
This commit is contained in:
committed by
Nick Bolton
parent
3c133380f8
commit
8054bc51a5
@@ -107,7 +107,8 @@ void ServerConfigDialog::accept()
|
||||
serverConfig().setEnableDragAndDrop(m_pCheckBoxEnableDragAndDrop->isChecked());
|
||||
serverConfig().setDisableLockToScreen(m_pCheckBoxDisableLockToScreen->isChecked());
|
||||
serverConfig().setClipboardSharingSize(m_pSpinBoxClipboardSizeLimit->value() * 1024);
|
||||
serverConfig().setClipboardSharing(m_pCheckBoxEnableClipboard->isChecked());
|
||||
serverConfig().setClipboardSharing(m_pCheckBoxEnableClipboard->isChecked()
|
||||
&& m_pSpinBoxClipboardSizeLimit->value());
|
||||
|
||||
// now that the dialog has been accepted, copy the new server config to the original one,
|
||||
// which is a reference to the one in MainWindow.
|
||||
|
||||
Reference in New Issue
Block a user