linter fixes
This commit is contained in:
parent
f13356fb8b
commit
0f4a8bb3be
|
@ -32,7 +32,8 @@ const Config::Info<bool> LOGGER_WRITE_TO_WINDOW{
|
|||
{Config::System::Logger, "Options", "WriteToWindow"}, true};
|
||||
const Config::Info<LogLevel> LOGGER_VERBOSITY{{Config::System::Logger, "Options", "Verbosity"},
|
||||
LogLevel::LNOTICE};
|
||||
const Config::Info<bool> LOGGER_CONVERT_FROM_SJIS{{Config::System::Logger, "Options", "ConvertFromSJIS"}, true};
|
||||
const Config::Info<bool> LOGGER_CONVERT_FROM_SJIS{
|
||||
{Config::System::Logger, "Options", "ConvertFromSJIS"}, true};
|
||||
|
||||
class FileLogListener : public LogListener
|
||||
{
|
||||
|
@ -168,7 +169,8 @@ LogManager::LogManager()
|
|||
container.m_enable = Config::Get(
|
||||
Config::Info<bool>{{Config::System::Logger, "Logs", container.m_short_name}, false});
|
||||
}
|
||||
m_convert_sjis = Config::Get(Config::Info<bool>{{Config::System::Logger, "Options", "ConvertFromSJIS"}, true});
|
||||
m_convert_sjis =
|
||||
Config::Get(Config::Info<bool>{{Config::System::Logger, "Options", "ConvertFromSJIS"}, true});
|
||||
m_path_cutoff_point = DeterminePathCutOffPoint();
|
||||
}
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@ public:
|
|||
void SetEnable(LogType type, bool enable);
|
||||
bool IsEnabled(LogType type, LogLevel level = LogLevel::LNOTICE) const;
|
||||
|
||||
void SetEnableConvertSJIS(bool enable) { m_convert_sjis = enable;}
|
||||
void SetEnableConvertSJIS(bool enable) { m_convert_sjis = enable; }
|
||||
bool IsEnabledConvertSJIS() const { return m_convert_sjis; }
|
||||
|
||||
std::map<std::string, std::string> GetLogTypes();
|
||||
|
|
|
@ -221,7 +221,7 @@ void LogConfigWidget::SaveSettings()
|
|||
bool was_enabled = log_manager->IsEnabledConvertSJIS();
|
||||
|
||||
if (enabled != was_enabled)
|
||||
log_manager->SetEnableConvertSJIS(enabled);
|
||||
log_manager->SetEnableConvertSJIS(enabled);
|
||||
}
|
||||
|
||||
void LogConfigWidget::closeEvent(QCloseEvent*)
|
||||
|
|
Loading…
Reference in New Issue