mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 820135 - Preferences: We don't save prefs when we reboot. r=cjones
This commit is contained in:
parent
c77b482735
commit
f79303850c
@ -141,6 +141,7 @@ PowerManagerService::Restart()
|
||||
StartForceQuitWatchdog(eHalShutdownMode_Restart, mWatchdogTimeoutSecs);
|
||||
// To synchronize any unsaved user data before restarting.
|
||||
SyncProfile();
|
||||
sync();
|
||||
_exit(0);
|
||||
MOZ_NOT_REACHED();
|
||||
return NS_OK;
|
||||
|
@ -14,12 +14,14 @@ namespace hal_impl {
|
||||
void
|
||||
Reboot()
|
||||
{
|
||||
sync();
|
||||
reboot(RB_AUTOBOOT);
|
||||
}
|
||||
|
||||
void
|
||||
PowerOff()
|
||||
{
|
||||
sync();
|
||||
reboot(RB_POWER_OFF);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user