mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-18 14:08:19 +00:00
Improve warning popup message when saving settings fails
The message was previously showing an incorrect filename.
This commit is contained in:
parent
fda996014b
commit
43b1e5cb1f
|
@ -2997,7 +2997,11 @@ void CClient::Run()
|
||||||
{
|
{
|
||||||
// write down the config and quit
|
// write down the config and quit
|
||||||
if(!m_pConfigManager->Save())
|
if(!m_pConfigManager->Save())
|
||||||
m_vWarnings.emplace_back(Localize("Saving ddnet-settings.cfg failed"));
|
{
|
||||||
|
char aWarning[128];
|
||||||
|
str_format(aWarning, sizeof(aWarning), Localize("Saving settings to '%s' failed"), CONFIG_FILE);
|
||||||
|
m_vWarnings.emplace_back(aWarning);
|
||||||
|
}
|
||||||
s_SavedConfig = true;
|
s_SavedConfig = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue