Page MenuHome

T68649 Adding a dialog box to Load Factory Preferences
Needs ReviewPublic

Authored by Yevgeny Makarov (jenkm) on Fri, Jan 3, 11:26 PM.

Details

Summary

T68649 Improve communication of auto-save behavior by adding dialog box to "Load Factory Preferences".

Dialog boxes:

After loading, a further notification is shown:

When preferences manually saved, the NO_SAVE_ON_EXIT flag is removed.
When the "Auto-Save Preferences" is unchecked, the "Save Preferences" button is displayed as usual.

Diff Detail

Repository
rB Blender

Event Timeline

def draw_menu(popover, context):
    layout = popover.layout

    col = layout.column(align=True)
    for line in (self.bl_description + ".").splitlines():
        col.label(text=line)

context.window_manager.popover(
    draw_menu,
    ui_units_x=15,
    from_active_button=True,
)