fix: "Open Torrent Address" not remembering previous address (#4461)

This commit is contained in:
Cœur 2023-01-01 02:17:24 +08:00 committed by GitHub
parent 53f5a33616
commit 3777796ce2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 11 deletions

View File

@ -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");