mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 09:39:08 +01: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:
@@ -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])
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user