mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 18:37:22 +01:00
add disable autologon on a per character basis
add automatic notes population on empty notes adjust mare command help text
This commit is contained in:
parent
f6df371339
commit
c66b58d156
11 changed files with 90 additions and 13 deletions
|
|
@ -17,6 +17,7 @@ public class ServerConfigurationManager
|
|||
{
|
||||
private readonly ServerConfigService _configService;
|
||||
private readonly DalamudUtilService _dalamudUtil;
|
||||
private readonly MareConfigService _mareConfigService;
|
||||
private readonly ILogger<ServerConfigurationManager> _logger;
|
||||
private readonly MareMediator _mareMediator;
|
||||
private readonly NotesConfigService _notesConfig;
|
||||
|
|
@ -24,6 +25,7 @@ public class ServerConfigurationManager
|
|||
|
||||
public ServerConfigurationManager(ILogger<ServerConfigurationManager> logger, ServerConfigService configService,
|
||||
ServerTagConfigService serverTagConfig, NotesConfigService notesConfig, DalamudUtilService dalamudUtil,
|
||||
MareConfigService mareConfigService,
|
||||
MareMediator mareMediator)
|
||||
{
|
||||
_logger = logger;
|
||||
|
|
@ -31,6 +33,7 @@ public class ServerConfigurationManager
|
|||
_serverTagConfig = serverTagConfig;
|
||||
_notesConfig = notesConfig;
|
||||
_dalamudUtil = dalamudUtil;
|
||||
_mareConfigService = mareConfigService;
|
||||
_mareMediator = mareMediator;
|
||||
EnsureMainExists();
|
||||
}
|
||||
|
|
@ -438,6 +441,15 @@ public class ServerConfigurationManager
|
|||
_notesConfig.Save();
|
||||
}
|
||||
|
||||
internal void AutoPopulateNoteForUid(string uid, string note)
|
||||
{
|
||||
if (!_mareConfigService.Current.AutoPopulateEmptyNotesFromCharaName
|
||||
|| GetNoteForUid(uid) != null)
|
||||
return;
|
||||
|
||||
SetNoteForUid(uid, note, save: true);
|
||||
}
|
||||
|
||||
private ServerNotesStorage CurrentNotesStorage()
|
||||
{
|
||||
TryCreateCurrentNotesStorage();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue