Skip to content

Commit

Permalink
Tiny refactors.
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbound committed Apr 3, 2020
1 parent 0ea4535 commit 0970b2e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Desktop.Linux/ViewModels/MainWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ public async Task PromptForHostName()
}
}

private static void BuildServices()
private void BuildServices()
{
var serviceCollection = new ServiceCollection();
serviceCollection.AddLogging(builder =>
Expand Down
2 changes: 1 addition & 1 deletion Desktop.Win/ViewModels/MainWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ public void PromptForHostName()
}
}

private static void BuildServices()
private void BuildServices()
{
var serviceCollection = new ServiceCollection();
serviceCollection.AddLogging(builder =>
Expand Down
4 changes: 2 additions & 2 deletions ScreenCast.Win/Services/WinClipboardService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public void BeginWatching()
if (Clipboard.ContainsText())
{
ClipboardText = Clipboard.GetText();
ClipboardTextChanged.Invoke(this, ClipboardText);
ClipboardTextChanged?.Invoke(this, ClipboardText);
}
ClipboardWatcher = new System.Timers.Timer(500);
}
Expand All @@ -56,7 +56,7 @@ private void ClipboardWatcher_Elapsed(object sender, System.Timers.ElapsedEventA
if (Clipboard.ContainsText() && Clipboard.GetText() != ClipboardText)
{
ClipboardText = Clipboard.GetText();
ClipboardTextChanged.Invoke(this, ClipboardText);
ClipboardTextChanged?.Invoke(this, ClipboardText);
}
}
catch { }
Expand Down

0 comments on commit 0970b2e

Please sign in to comment.