mirror of
https://github.com/SteamRE/DepotDownloader.git
synced 2026-10-19 15:51:50 +00:00
dispose of disposables
This commit is contained in:
1 parent
6ffa0948a4
commit
8d6c09e779
1 file changed
+2
-2
@@ -747,9 +747,9 @@ namespace DepotDownloader
|
||||
private static void DisplayQrCode(string challengeUrl)
|
||||
{
|
||||
// Encode the link as a QR code
|
||||
var qrGenerator = new QRCodeGenerator();
|
||||
using var qrGenerator = new QRCodeGenerator();
|
||||
var qrCodeData = qrGenerator.CreateQrCode(challengeUrl, QRCodeGenerator.ECCLevel.L);
|
||||
var qrCode = new AsciiQRCode(qrCodeData);
|
||||
using var qrCode = new AsciiQRCode(qrCodeData);
|
||||
var qrCodeAsAsciiArt = qrCode.GetGraphic(1, drawQuietZones: false);
|
||||
|
||||
Console.WriteLine("Use the Steam Mobile App to sign in with this QR code:");
|
||||
|
||||
Reference in new issue
Block a user