* Make the locale settings apply immediately when the user clicks on something rather than on preflet close.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37666 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -46,10 +46,6 @@ LocaleSettings::Load()
|
|||||||
status_t
|
status_t
|
||||||
LocaleSettings::Save()
|
LocaleSettings::Save()
|
||||||
{
|
{
|
||||||
// Send to all running apps to notify them they should update their settings
|
|
||||||
fMessage.what = B_LOCALE_CHANGED;
|
|
||||||
be_roster->Broadcast(&fMessage);
|
|
||||||
|
|
||||||
// Save on disk for next time we reboot
|
// Save on disk for next time we reboot
|
||||||
BFile file;
|
BFile file;
|
||||||
status_t err;
|
status_t err;
|
||||||
@@ -109,5 +105,12 @@ LocaleSettings::UpdateFrom(BMessage* message)
|
|||||||
fMessage.ReplaceString("longTimeFormat", messageContent);
|
fMessage.ReplaceString("longTimeFormat", messageContent);
|
||||||
fSaved = false;
|
fSaved = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (fSaved == false) {
|
||||||
|
// Send to all running apps to notify them they should update their
|
||||||
|
// settings
|
||||||
|
fMessage.what = B_LOCALE_CHANGED;
|
||||||
|
be_roster->Broadcast(&fMessage);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user