Skip to content

Commit 38b2a7d

Browse files
committed
Rename QRCodeWindowsUtils
1 parent bf3703b commit 38b2a7d

5 files changed

Lines changed: 7 additions & 6 deletions

File tree

v2rayN/v2rayN/Common/QRCodeUtils.cs renamed to v2rayN/v2rayN/Common/QRCodeWindowsUtils.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
using System.Windows.Media;
33
using System.Windows.Media.Imaging;
44

5-
namespace v2rayN;
5+
namespace v2rayN.Common;
66

7-
public class QRCodeUtils
7+
public class QRCodeWindowsUtils
88
{
99
public static ImageSource? GetQRCode(string? strContent)
1010
{
@@ -14,7 +14,7 @@ public class QRCodeUtils
1414
}
1515
try
1616
{
17-
var qrCodeImage = ServiceLib.Common.QRCodeUtils.GenQRCode(strContent);
17+
var qrCodeImage = QRCodeUtils.GenQRCode(strContent);
1818
return qrCodeImage is null ? null : ByteToImage(qrCodeImage);
1919
}
2020
catch (Exception ex)

v2rayN/v2rayN/GlobalUsings.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,4 @@
3131
global using ServiceLib.Models;
3232
global using ServiceLib.Resx;
3333
global using ServiceLib.ViewModels;
34+
global using v2rayN.Common;

v2rayN/v2rayN/Views/MainWindow.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ private async Task ScanScreenTaskAsync()
328328

329329
if (Application.Current?.MainWindow is Window window)
330330
{
331-
var bytes = QRCodeUtils.CaptureScreen(window);
331+
var bytes = QRCodeWindowsUtils.CaptureScreen(window);
332332
await ViewModel?.ScanScreenResult(bytes);
333333
}
334334

v2rayN/v2rayN/Views/ProfilesView.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ private async Task<bool> UpdateViewHandler(EViewAction action, object? obj)
170170

171171
public async void ShareServer(string url)
172172
{
173-
var img = QRCodeUtils.GetQRCode(url);
173+
var img = QRCodeWindowsUtils.GetQRCode(url);
174174
var dialog = new QrcodeView()
175175
{
176176
imgQrcode = { Source = img },

v2rayN/v2rayN/Views/SubSettingWindow.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ private async void ShareSub(string url)
6464
{
6565
return;
6666
}
67-
var img = QRCodeUtils.GetQRCode(url);
67+
var img = QRCodeWindowsUtils.GetQRCode(url);
6868
var dialog = new QrcodeView()
6969
{
7070
imgQrcode = { Source = img },

0 commit comments

Comments
 (0)