mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
add group menu to open window
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
|
||||
#import "AddWindowController.h"
|
||||
#import "Controller.h"
|
||||
#import "GroupsWindowController.h"
|
||||
#import "NSStringAdditions.h"
|
||||
#import "ExpandedPathToIconTransformer.h"
|
||||
|
||||
@@ -35,8 +36,6 @@
|
||||
|
||||
@implementation AddWindowController
|
||||
|
||||
#warning add check to delete torrent file
|
||||
|
||||
- (id) initWithTorrent: (Torrent *) torrent destination: (NSString *) path controller: (Controller *) controller
|
||||
deleteTorrent: (torrentFileState) deleteTorrent
|
||||
{
|
||||
@@ -78,6 +77,10 @@
|
||||
}
|
||||
[fStatusField setStringValue: statusString];
|
||||
|
||||
#warning make dynamic
|
||||
#warning reset if remove
|
||||
[fGroupPopUp setMenu: [[GroupsWindowController groups] groupMenuWithTarget: nil action: NULL isSmall: NO]];
|
||||
|
||||
[fStartCheck setState: [[NSUserDefaults standardUserDefaults] boolForKey: @"AutoStartDownload"] ? NSOnState : NSOffState];
|
||||
|
||||
if (fDestination)
|
||||
@@ -123,6 +126,7 @@
|
||||
- (void) add: (id) sender
|
||||
{
|
||||
[fTorrent setWaitToStart: [fStartCheck state] == NSOnState];
|
||||
[fTorrent setGroupValue: [[fGroupPopUp selectedItem] tag]];
|
||||
|
||||
[fController askOpenConfirmed: fTorrent];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user