| 52 | } |
| 53 | |
| 54 | inline void SaveChanges(const bool requires_reboot) { |
| 55 | g_Settings.Save(); |
| 56 | |
| 57 | auto notif_text = cfg::Strings.GetString(445); |
| 58 | if(requires_reboot) { |
| 59 | notif_text += " (" + cfg::Strings.GetString(446) + ")."; |
| 60 | } |
| 61 | g_MainApplication->ShowNotification(notif_text); |
| 62 | |
| 63 | g_MainApplication->GetOwnSettingsLayout()->UpdateSettings(false); |
| 64 | } |
| 65 | |
| 66 | } |
| 67 |
no test coverage detected