mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
by popular demand the return of the advanced bar (now Pieces Bar)
This commit is contained in:
@@ -2495,6 +2495,12 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
|
||||
[self setWindowSizeToFit];
|
||||
}
|
||||
|
||||
- (void) togglePiecesBar: (id) sender
|
||||
{
|
||||
[fDefaults setBool: ![fDefaults boolForKey: @"PiecesBar"] forKey: @"PiecesBar"];
|
||||
[fTableView reloadData];
|
||||
}
|
||||
|
||||
- (void) toggleStatusBar: (id) sender
|
||||
{
|
||||
[self showStatusBar: [fStatusBar isHidden] animate: YES];
|
||||
@@ -2854,7 +2860,7 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
|
||||
return [fWindow attachedSheet] == nil;
|
||||
|
||||
//enable sort and advanced bar items
|
||||
if (action == @selector(setSort:) /*|| action == @selector(toggleAdvancedBar:) ||*/)
|
||||
if (action == @selector(setSort:))
|
||||
return [fWindow isVisible];
|
||||
|
||||
if (action == @selector(toggleSmallView:))
|
||||
@@ -2862,6 +2868,12 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
|
||||
[menuItem setState: [fDefaults boolForKey: @"SmallView"] ? NSOnState : NSOffState];
|
||||
return [fWindow isVisible];
|
||||
}
|
||||
|
||||
if (action == @selector(togglePiecesBar:))
|
||||
{
|
||||
[menuItem setState: [fDefaults boolForKey: @"PiecesBar"] ? NSOnState : NSOffState];
|
||||
return [fWindow isVisible];
|
||||
}
|
||||
|
||||
//enable show info
|
||||
if (action == @selector(showInfo:))
|
||||
|
||||
Reference in New Issue
Block a user