mirror of
https://github.com/2dust/v2rayN.git
synced 2026-11-06 20:45:00 +03:00
Add DialogHost fro Desktop
This commit is contained in:
@@ -3,7 +3,7 @@ using Avalonia.Media.Imaging;
|
||||
|
||||
namespace v2rayN.Desktop.Views
|
||||
{
|
||||
public partial class QrcodeView : Window
|
||||
public partial class QrcodeView : UserControl
|
||||
{
|
||||
public QrcodeView(string? url)
|
||||
{
|
||||
@@ -12,7 +12,7 @@ namespace v2rayN.Desktop.Views
|
||||
txtContent.Text = url;
|
||||
imgQrcode.Source = GetQRCode(url);
|
||||
|
||||
btnCancel.Click += (s, e) => this.Close();
|
||||
// btnCancel.Click += (s, e) => this.Close();
|
||||
}
|
||||
|
||||
private Bitmap? GetQRCode(string? url)
|
||||
|
||||
Reference in New Issue
Block a user