work around for small bug in apple code
This commit is contained in:
parent
c8d7769436
commit
3e93518815
|
@ -11,9 +11,9 @@
|
|||
<key>28</key>
|
||||
<string>22 331 577 290 0 0 1024 746 </string>
|
||||
<key>41</key>
|
||||
<string>294 420 563 317 0 0 1152 842 </string>
|
||||
<string>213 415 563 317 0 0 1152 842 </string>
|
||||
<key>66</key>
|
||||
<string>72 601 563 159 0 0 1152 842 </string>
|
||||
<string>294 499 563 159 0 0 1152 842 </string>
|
||||
</dict>
|
||||
<key>IBFramework Version</key>
|
||||
<string>446.1</string>
|
||||
|
@ -24,7 +24,6 @@
|
|||
<key>IBOpenObjects</key>
|
||||
<array>
|
||||
<integer>66</integer>
|
||||
<integer>41</integer>
|
||||
</array>
|
||||
<key>IBSystem Version</key>
|
||||
<string>8J135</string>
|
||||
|
|
Binary file not shown.
|
@ -51,12 +51,12 @@
|
|||
IBOutlet NSButton * fUploadCheck, * fDownloadCheck,
|
||||
* fSpeedLimitAutoCheck;
|
||||
|
||||
IBOutlet NSTextField * fPortField, * fNatStatusField, * fPortStatusField;
|
||||
IBOutlet NSButton * fNatCheck;
|
||||
IBOutlet NSImageView * fNatStatusImage, * fPortStatusImage;
|
||||
IBOutlet NSProgressIndicator * fPortStatusProgress;
|
||||
NSTimer * fNatStatusTimer;
|
||||
int fNatStatus;
|
||||
IBOutlet NSTextField * fPortField, * fNatStatusField, * fPortStatusField;
|
||||
IBOutlet NSButton * fNatCheck;
|
||||
IBOutlet NSImageView * fNatStatusImage, * fPortStatusImage;
|
||||
IBOutlet NSProgressIndicator * fPortStatusProgress;
|
||||
NSTimer * fNatStatusTimer;
|
||||
int fNatStatus;
|
||||
|
||||
IBOutlet NSButton * fRatioCheck;
|
||||
IBOutlet NSTextField * fRatioField;
|
||||
|
|
|
@ -123,6 +123,7 @@
|
|||
int bindPort = [fDefaults integerForKey: @"BindPort"];
|
||||
[fPortField setIntValue: bindPort];
|
||||
tr_setBindPort(fHandle, bindPort);
|
||||
|
||||
[self updatePortStatus];
|
||||
|
||||
//set NAT
|
||||
|
@ -893,6 +894,10 @@
|
|||
- (void) showNetworkPref: (id) sender
|
||||
{
|
||||
[self setPrefView: fNetworkView];
|
||||
|
||||
//get around bug in apple code
|
||||
if ([fPortStatusImage image])
|
||||
[fPortStatusProgress setDisplayedWhenStopped: NO];
|
||||
}
|
||||
|
||||
- (void) setPrefView: (NSView *) view
|
||||
|
|
Loading…
Reference in New Issue