(feat) new SOGoHelpURL preference to set a custom URL for SOGo help (fixes #2768)

This commit is contained in:
Ludovic Marcotte committed 2016-03-22 14:25:55 -04:00
1 parent fee310908b
commit 916806cc2c
6 files changed
+29 -9

No files matched your search

+9 -8
View File
@@ -112,20 +112,21 @@
return (@"<!DOCTYPE html>");
}
/* Help URL/target */
/* Help URL */
- (NSString *) helpURL
{
return [NSString stringWithFormat: @"help/%@.html", title];
}
SOGoSystemDefaults *sd;
NSString *s;
- (NSString *) helpWindowTarget
{
return [NSString stringWithFormat: @"Help_%@", title];
sd = [SOGoSystemDefaults sharedSystemDefaults];
if ((s = [sd helpURL]))
return s;
return @"";
}
/* notifications */
- (void) sleep
{
[item release];