mirror of
https://github.com/transmission/transmission
synced 2024-12-25 17:17:31 +00:00
fix bug where dragging a torrent that is already opened off of the window will make the overlay appear and fade off
This commit is contained in:
parent
7da33be84b
commit
cd7de9ae16
2 changed files with 3 additions and 2 deletions
|
@ -1899,7 +1899,6 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
|
|||
[self applyFilter: nil];
|
||||
}
|
||||
|
||||
#warning improve with matrix
|
||||
- (void) switchFilter: (id) sender
|
||||
{
|
||||
NSString * filterType = [fDefaults stringForKey: @"Filter"];
|
||||
|
@ -2309,7 +2308,6 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
|
|||
return NSDragOperationNone;
|
||||
}
|
||||
|
||||
#warning when dragging a torrent file that already exists on and off, it gives a weird result
|
||||
- (void) draggingExited: (id <NSDraggingInfo>) info
|
||||
{
|
||||
if (fOverlayWindow)
|
||||
|
|
|
@ -159,6 +159,9 @@
|
|||
|
||||
- (void) fadeOut
|
||||
{
|
||||
if ([self alphaValue] <= 0.0)
|
||||
return;
|
||||
|
||||
//stop other animation and set to same progress
|
||||
if ([fFadeInAnimation isAnimating])
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue