Preferences: add is_dirty member

Tag preferences as dirty when changed (prepare for adding auto-save).
This commit is contained in:
2019-05-10 15:57:23 +10:00
parent b607d16292
commit b95b6b7966
4 changed files with 20 additions and 1 deletions

View File

@@ -7566,6 +7566,11 @@ static void button_activate_exit(
if (block->flag & UI_BLOCK_POPUP_MEMORY) {
ui_popup_menu_memory_set(block, but);
}
/* Not very elegant, but ensures preference changes force re-save. */
if (but->rnaprop && (but->rnapoin.data == &U)) {
U.runtime.is_dirty = true;
}
}
/* disable tooltips until mousemove + last active flag */