fix: "Open Torrent Address" not remembering previous address (#4461)
This commit is contained in:
parent
53f5a33616
commit
3777796ce2
|
@ -16,8 +16,6 @@
|
||||||
|
|
||||||
@implementation URLSheetWindowController
|
@implementation URLSheetWindowController
|
||||||
|
|
||||||
NSString* urlString = nil;
|
|
||||||
|
|
||||||
- (instancetype)init
|
- (instancetype)init
|
||||||
{
|
{
|
||||||
self = [self initWithWindowNibName:@"URLSheetWindow"];
|
self = [self initWithWindowNibName:@"URLSheetWindow"];
|
||||||
|
@ -27,15 +25,6 @@ NSString* urlString = nil;
|
||||||
- (void)awakeFromNib
|
- (void)awakeFromNib
|
||||||
{
|
{
|
||||||
self.fLabelField.stringValue = NSLocalizedString(@"Internet address of torrent file:", "URL sheet label");
|
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.fOpenButton.title = NSLocalizedString(@"Open", "URL sheet button");
|
||||||
self.fCancelButton.title = NSLocalizedString(@"Cancel", "URL sheet button");
|
self.fCancelButton.title = NSLocalizedString(@"Cancel", "URL sheet button");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue