Rename private "*1" methods to "*Core" for clarity

Refactored private methods previously suffixed with "1" to use the "Core" suffix instead (e.g., GetWallpaperBrush1 → GetWallpaperBrushCore). Updated all corresponding invocations. This improves naming consistency and aligns with common conventions for core logic methods.
This commit is contained in:
Jack251970 2026-03-10 11:57:55 +08:00
parent 036713c669
commit 7c55986b24
4 changed files with 8 additions and 8 deletions

View file

@ -22,10 +22,10 @@ public static class WallpaperPathRetrieval
public static Brush GetWallpaperBrush()
{
// Invoke the method on the UI thread
return DispatcherHelper.Invoke(GetWallpaperBrush1);
return DispatcherHelper.Invoke(GetWallpaperBrushCore);
}
private static Brush GetWallpaperBrush1()
private static Brush GetWallpaperBrushCore()
{
try
{

View file

@ -30,10 +30,10 @@ namespace Flow.Launcher
MessageBoxImage icon = MessageBoxImage.None,
MessageBoxResult defaultResult = MessageBoxResult.OK)
{
return DispatcherHelper.Invoke(() => Show1(messageBoxText, caption, button, icon, defaultResult));
return DispatcherHelper.Invoke(() => ShowCore(messageBoxText, caption, button, icon, defaultResult));
}
private static MessageBoxResult Show1(
private static MessageBoxResult ShowCore(
string messageBoxText,
string caption = "",
MessageBoxButton button = MessageBoxButton.OK,

View file

@ -52,10 +52,10 @@ namespace Flow.Launcher
private void ReportProgress(double progress)
{
DispatcherHelper.Invoke(() => ReportProgress1(progress));
DispatcherHelper.Invoke(() => ReportProgressCore(progress));
}
private void ReportProgress1(double progress)
private void ReportProgressCore(double progress)
{
if (progress < 0)
{

View file

@ -764,10 +764,10 @@ namespace Flow.Launcher.ViewModel
public void ChangeQueryText(string queryText, bool isReQuery = false)
{
// Must check access so that we will not block the UI thread which causes window visibility issue
DispatcherHelper.Invoke(() => ChangeQueryText1(queryText, isReQuery));
DispatcherHelper.Invoke(() => ChangeQueryTextCore(queryText, isReQuery));
}
private void ChangeQueryText1(string queryText, bool isReQuery = false)
private void ChangeQueryTextCore(string queryText, bool isReQuery = false)
{
if (QueryText != queryText)
{