diff --git a/SyncClipboard/Properties/Settings.Designer.cs b/SyncClipboard/Properties/Settings.Designer.cs index 3deecc77..656ec1ba 100644 --- a/SyncClipboard/Properties/Settings.Designer.cs +++ b/SyncClipboard/Properties/Settings.Designer.cs @@ -38,7 +38,7 @@ public string URL { [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("a")] + [global::System.Configuration.DefaultSettingValueAttribute("")] public string USERNAME { get { return ((string)(this["USERNAME"])); @@ -50,7 +50,7 @@ public string USERNAME { [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("b")] + [global::System.Configuration.DefaultSettingValueAttribute("")] public string PASSWORD { get { return ((string)(this["PASSWORD"])); diff --git a/SyncClipboard/Properties/Settings.settings b/SyncClipboard/Properties/Settings.settings index 7506c6bb..0c7dd978 100644 --- a/SyncClipboard/Properties/Settings.settings +++ b/SyncClipboard/Properties/Settings.settings @@ -6,10 +6,10 @@ https://cloud.jericx.xyz/remote.php/dav/files/JericX/Clipboard/SyncClipboard.json - a + - b + True diff --git a/SyncClipboard/SyncService.cs b/SyncClipboard/SyncService.cs index a4e587a4..2aba3dcc 100644 --- a/SyncClipboard/SyncService.cs +++ b/SyncClipboard/SyncService.cs @@ -107,7 +107,7 @@ private void PullFromRemote() { return; } - if (p1.Clipboard != this.oldString) + if (p1 != null && p1.Clipboard != this.oldString) { if (this.isFirstTime) { diff --git a/SyncClipboard/app.config b/SyncClipboard/app.config index 66d96b93..49bba11f 100644 --- a/SyncClipboard/app.config +++ b/SyncClipboard/app.config @@ -11,10 +11,10 @@ https://cloud.jericx.xyz/remote.php/dav/files/JericX/Clipboard/SyncClipboard.json - a + - b + True