MCPcopy Create free account
hub / github.com/XorTroll/Goldleaf / SaveChanges

Function SaveChanges

Goldleaf/source/ui/ui_OwnSettingsLayout.cpp:54–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Calls 3

SaveMethod · 0.80
ShowNotificationMethod · 0.80
UpdateSettingsMethod · 0.80

Tested by

no test coverage detected