Tiny refactors.

This commit is contained in:
Jared Goodwin 2020-04-02 19:41:37 -07:00
parent 0ea453566c
commit 0970b2e27d
3 changed files with 4 additions and 4 deletions

View File

@ -217,7 +217,7 @@ namespace Remotely.Desktop.Linux.ViewModels
}
}
private static void BuildServices()
private void BuildServices()
{
var serviceCollection = new ServiceCollection();
serviceCollection.AddLogging(builder =>

View File

@ -246,7 +246,7 @@ namespace Remotely.Desktop.Win.ViewModels
}
}
private static void BuildServices()
private void BuildServices()
{
var serviceCollection = new ServiceCollection();
serviceCollection.AddLogging(builder =>

View File

@ -32,7 +32,7 @@ namespace Remotely.ScreenCast.Win.Services
if (Clipboard.ContainsText())
{
ClipboardText = Clipboard.GetText();
ClipboardTextChanged.Invoke(this, ClipboardText);
ClipboardTextChanged?.Invoke(this, ClipboardText);
}
ClipboardWatcher = new System.Timers.Timer(500);
}
@ -56,7 +56,7 @@ namespace Remotely.ScreenCast.Win.Services
if (Clipboard.ContainsText() && Clipboard.GetText() != ClipboardText)
{
ClipboardText = Clipboard.GetText();
ClipboardTextChanged.Invoke(this, ClipboardText);
ClipboardTextChanged?.Invoke(this, ClipboardText);
}
}
catch { }