From d7cdab6a7ced9524c2129bf3568fac2a47d58205 Mon Sep 17 00:00:00 2001 From: Nguyen Duy Date: Tue, 5 Nov 2024 08:41:36 +0700 Subject: [PATCH] fix typo --- .github/workflows/build.yml | 2 +- app/Device.cs | 8 ++++---- app/MainWindow.xaml.cs | 7 ++----- app/Tray.cs | 1 - core/parsec-vdd.h | 8 ++++---- 5 files changed, 11 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5cabecf..5748056 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -33,7 +33,7 @@ jobs: - name: Build app run: | cd app - msbuild ParsecVDisplay.csproj /t:Build /p:Configuration=Debug /p:Platform=AnyCPU + msbuild ParsecVDisplay.csproj /t:Build /p:Configuration=Release /p:Platform=AnyCPU - uses: actions/upload-artifact@v4 with: diff --git a/app/Device.cs b/app/Device.cs index 63a7de6..1095857 100644 --- a/app/Device.cs +++ b/app/Device.cs @@ -10,8 +10,8 @@ namespace ParsecVDisplay { OK, INACCESSIBLE, - UNKNOW, - UNKNOW_PROBLEM, + UNKNOWN, + UNKNOWN_PROBLEM, DISABLED, DRIVER_ERROR, RESTART_REQUIRED, @@ -102,13 +102,13 @@ namespace ParsecVDisplay if (devProblemNum == Native.CM_PROB_FAILED_POST_START) status = Status.DRIVER_ERROR; else - status = Status.UNKNOW_PROBLEM; + status = Status.UNKNOWN_PROBLEM; break; } } else { - status = Status.UNKNOW; + status = Status.UNKNOWN; } } } diff --git a/app/MainWindow.xaml.cs b/app/MainWindow.xaml.cs index 967d4c7..1810453 100644 --- a/app/MainWindow.xaml.cs +++ b/app/MainWindow.xaml.cs @@ -1,12 +1,10 @@ -using Microsoft.Win32; -using System; -using System.Collections.Generic; +using System; using System.ComponentModel; using System.Windows; -using System.Windows.Controls; using System.Windows.Input; using System.Windows.Interop; using System.Windows.Navigation; +using Microsoft.Win32; namespace ParsecVDisplay { @@ -81,7 +79,6 @@ namespace ParsecVDisplay SystemEvents.DisplaySettingsChanged -= DisplayChanged; } - int count = 0; private void UpdateDriverLabel() { ParsecVDD.QueryVersion(out var dver); diff --git a/app/Tray.cs b/app/Tray.cs index 0c5f5bb..edd4ade 100644 --- a/app/Tray.cs +++ b/app/Tray.cs @@ -4,7 +4,6 @@ using System.Drawing; using System.Threading; using System.Threading.Tasks; using Microsoft.Win32; -using System.Linq; namespace ParsecVDisplay { diff --git a/core/parsec-vdd.h b/core/parsec-vdd.h index d9b7f47..bf4c517 100644 --- a/core/parsec-vdd.h +++ b/core/parsec-vdd.h @@ -48,8 +48,8 @@ namespace parsec_vdd typedef enum { DEVICE_OK = 0, // Ready to use DEVICE_INACCESSIBLE, // Inaccessible - DEVICE_UNKNOW, // Unknow status - DEVICE_UNKNOW_PROBLEM, // Unknow problem + DEVICE_UNKNOWN, // Unknown status + DEVICE_UNKNOWN_PROBLEM, // Unknown problem DEVICE_DISABLED, // Device is disabled DEVICE_DRIVER_ERROR, // Device encountered error DEVICE_RESTART_REQUIRED, // Must restart PC to use (could ignore but would have issue) @@ -147,13 +147,13 @@ static DeviceStatus QueryDeviceStatus(const GUID *classGuid, const char *deviceI if (devProblemNum == CM_PROB_FAILED_POST_START) status = DEVICE_DRIVER_ERROR; else - status = DEVICE_UNKNOW_PROBLEM; + status = DEVICE_UNKNOWN_PROBLEM; break; } } else { - status = DEVICE_UNKNOW; + status = DEVICE_UNKNOWN; } } }