mirror of
https://github.com/pepaskopec-blip/Graduately.git
synced 2026-10-27 23:24:34 +00:00
Show a what's-new card on the home screen after each update.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
dd8d992bf8
commit
6556c6691b
21 changed files with 490 additions and 0 deletions
|
|
@ -287,6 +287,7 @@ void save_settings(void) {
|
|||
app_color_mode == MODE_LIGHT ? "light" : "dark");
|
||||
g_key_file_set_string(kf, "ui", "lang",
|
||||
app_lang == LANG_EN ? "en" : "cs");
|
||||
g_key_file_set_string(kf, "ui", "seen_commit", changelog_seen());
|
||||
|
||||
if (g_mkdir_with_parents(PROGRESS_DIR, 0755) != 0) {
|
||||
g_key_file_free(kf);
|
||||
|
|
@ -347,6 +348,12 @@ void load_settings(void) {
|
|||
g_free(lang);
|
||||
}
|
||||
}
|
||||
{
|
||||
gchar *seen = g_key_file_get_string(kf, "ui", "seen_commit", NULL);
|
||||
|
||||
changelog_set_seen(seen);
|
||||
g_free(seen);
|
||||
}
|
||||
|
||||
g_key_file_free(kf);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue