mirror of
https://github.com/arsenetar/dupeguru.git
synced 2026-01-22 14:41:39 +00:00
Fixed HTML exporting.
This commit is contained in:
@@ -22,7 +22,7 @@ http://www.hardcoded.net/licenses/bsd_license
|
||||
- (void)saveSession;
|
||||
- (void)clearIgnoreList;
|
||||
- (void)purgeIgnoreList;
|
||||
- (NSString *)exportToXHTMLwithColumns:(NSArray *)aColIds;
|
||||
- (NSString *)exportToXHTML;
|
||||
- (void)invokeCommand:(NSString *)cmd;
|
||||
|
||||
- (void)doScan;
|
||||
|
||||
@@ -40,7 +40,6 @@ http://www.hardcoded.net/licenses/bsd_license
|
||||
|
||||
/* Helpers */
|
||||
- (void)fillColumnsMenu;
|
||||
- (NSArray *)getColumnsOrder;
|
||||
- (void)sendMarkedToTrash:(BOOL)hardlinkDeleted;
|
||||
- (void)updateOptionSegments;
|
||||
|
||||
|
||||
@@ -75,17 +75,6 @@ http://www.hardcoded.net/licenses/bsd_license
|
||||
[mi setTarget:self];
|
||||
}
|
||||
|
||||
//Returns an array of identifiers, in order.
|
||||
- (NSArray *)getColumnsOrder
|
||||
{
|
||||
NSMutableArray *result = [NSMutableArray array];
|
||||
for (NSTableColumn *col in [matches tableColumns]) {
|
||||
NSString *colId = [col identifier];
|
||||
[result addObject:colId];
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
- (void)sendMarkedToTrash:(BOOL)hardlinkDeleted
|
||||
{
|
||||
NSInteger mark_count = [[py getMarkCount] intValue];
|
||||
@@ -172,8 +161,7 @@ http://www.hardcoded.net/licenses/bsd_license
|
||||
|
||||
- (IBAction)exportToXHTML:(id)sender
|
||||
{
|
||||
// XXX No need to get column order from GUI anymore.
|
||||
NSString *exported = [py exportToXHTMLwithColumns:[self getColumnsOrder]];
|
||||
NSString *exported = [py exportToXHTML];
|
||||
[[NSWorkspace sharedWorkspace] openFile:exported];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user