From 3777796ce216b78ba57ba40b050a00ea1991178d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C5=93ur?= Date: Sun, 1 Jan 2023 02:17:24 +0800 Subject: [PATCH] fix: "Open Torrent Address" not remembering previous address (#4461) --- macosx/URLSheetWindowController.mm | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/macosx/URLSheetWindowController.mm b/macosx/URLSheetWindowController.mm index eee710031..ff34a811f 100644 --- a/macosx/URLSheetWindowController.mm +++ b/macosx/URLSheetWindowController.mm @@ -16,8 +16,6 @@ @implementation URLSheetWindowController -NSString* urlString = nil; - - (instancetype)init { self = [self initWithWindowNibName:@"URLSheetWindow"]; @@ -27,15 +25,6 @@ NSString* urlString = nil; - (void)awakeFromNib { self.fLabelField.stringValue = NSLocalizedString(@"Internet address of torrent file:", "URL sheet label"); - - if (self.urlString) - { - self.fTextField.stringValue = self.urlString; - [self.fTextField selectText:self]; - - [self updateOpenButtonForURL:self.urlString]; - } - self.fOpenButton.title = NSLocalizedString(@"Open", "URL sheet button"); self.fCancelButton.title = NSLocalizedString(@"Cancel", "URL sheet button");