mirror of
https://github.com/transmission/transmission
synced 2024-12-26 01:27:28 +00:00
No need to force resizing now that window resizing is allowed.
This commit is contained in:
parent
0905436bfe
commit
f633c19c03
2 changed files with 5 additions and 9 deletions
|
@ -58,11 +58,10 @@
|
|||
[window setBecomesKeyOnlyIfNeeded: YES];
|
||||
|
||||
[window setFrameAutosaveName: @"InspectorWindowFrame"];
|
||||
[window setFrameUsingName: @"InspectorWindowFrame" force: YES];
|
||||
[window setFrameUsingName: @"InspectorWindowFrame"];
|
||||
|
||||
NSRect frame = [window frame];
|
||||
float difference = TAB_INFO_HEIGHT - [[[fTabView selectedTabViewItem]
|
||||
view] frame].size.height;
|
||||
float difference = TAB_INFO_HEIGHT - [[[fTabView selectedTabViewItem] view] frame].size.height;
|
||||
frame.origin.y -= difference;
|
||||
frame.size.height += difference;
|
||||
[window setFrame: frame display: YES];
|
||||
|
|
|
@ -589,12 +589,9 @@
|
|||
|
||||
- (void) trashFile: (NSString *) path
|
||||
{
|
||||
if( ![[NSWorkspace sharedWorkspace] performFileOperation:
|
||||
NSWorkspaceRecycleOperation source:
|
||||
[path stringByDeletingLastPathComponent]
|
||||
destination: @""
|
||||
files: [NSArray arrayWithObject: [path lastPathComponent]]
|
||||
tag: nil] )
|
||||
if (![[NSWorkspace sharedWorkspace] performFileOperation: NSWorkspaceRecycleOperation
|
||||
source: [path stringByDeletingLastPathComponent] destination: @""
|
||||
files: [NSArray arrayWithObject: [path lastPathComponent]] tag: nil])
|
||||
{
|
||||
/* We can't move it to the trash, let's try just to delete it
|
||||
(will work if it is on a remote volume) */
|
||||
|
|
Loading…
Reference in a new issue