Ignore:
Timestamp:
Jul 19, 2008, 1:40:23 PM (14 years ago)
Author:
livings124
Message:

add a button to the prefs window to launch the web interface

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/PrefsController.m

    r6357 r6361  
    5757#define RPC_KEYCHAIN_NAME       "Remote"
    5858
     59#define WEBUI_URL   @"http://localhost:%d/transmission/clutch/"
     60
    5961@interface PrefsController (Private)
    6062
     
    806808{
    807809    tr_sessionSetRPCEnabled(fHandle, [fDefaults boolForKey: @"RPC"]);
     810}
     811
     812- (void) linkWebUI: (id) sender
     813{
     814    NSString * urlString = [NSString stringWithFormat: WEBUI_URL, [fDefaults integerForKey: @"RPCPort"]];
     815    [[NSWorkspace sharedWorkspace] openURL: [NSURL URLWithString: urlString]];
    808816}
    809817
Note: See TracChangeset for help on using the changeset viewer.