mirror of
https://github.com/immense/Remotely.git
synced 2025-10-26 11:27:15 +00:00
Tiny refactors.
This commit is contained in:
parent
0ea453566c
commit
0970b2e27d
@ -217,7 +217,7 @@ namespace Remotely.Desktop.Linux.ViewModels
|
||||
}
|
||||
}
|
||||
|
||||
private static void BuildServices()
|
||||
private void BuildServices()
|
||||
{
|
||||
var serviceCollection = new ServiceCollection();
|
||||
serviceCollection.AddLogging(builder =>
|
||||
|
||||
@ -246,7 +246,7 @@ namespace Remotely.Desktop.Win.ViewModels
|
||||
}
|
||||
}
|
||||
|
||||
private static void BuildServices()
|
||||
private void BuildServices()
|
||||
{
|
||||
var serviceCollection = new ServiceCollection();
|
||||
serviceCollection.AddLogging(builder =>
|
||||
|
||||
@ -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 { }
|
||||
|
||||
Loading…
Reference in New Issue
Block a user