mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-08 06:31:50 +08:00
#6344 Fix clipboard size limit initialization order
Setting the clipboard sharing size to a value > 0 enables clipboard sharing. Make sure we do this before applying the users actual preference.
This commit is contained in:
committed by
Nick Bolton
parent
dfcac4e90b
commit
36c81480d7
@@ -105,8 +105,8 @@ void ServerConfigDialog::accept()
|
||||
serverConfig().setIgnoreAutoConfigClient(m_pCheckBoxIgnoreAutoConfigClient->isChecked());
|
||||
serverConfig().setEnableDragAndDrop(m_pCheckBoxEnableDragAndDrop->isChecked());
|
||||
serverConfig().setDisableLockToScreen(m_pCheckBoxDisableLockToScreen->isChecked());
|
||||
serverConfig().setClipboardSharing(m_pCheckBoxEnableClipboard->isChecked());
|
||||
serverConfig().setClipboardSharingSize(m_pSpinBoxClipboardSizeLimit->value() * 1024);
|
||||
serverConfig().setClipboardSharing(m_pCheckBoxEnableClipboard->isChecked());
|
||||
|
||||
// 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