[Script] Set type on Mode object.

This commit is contained in:
Dave Davenport 2023-07-03 18:10:22 +02:00
parent be6db24667
commit 64ceb85eed
1 changed files with 2 additions and 0 deletions

View File

@ -576,6 +576,7 @@ Mode *script_mode_parse_setup(const char *str) {
sw->_get_icon = script_get_icon;
sw->_get_completion = NULL, sw->_preprocess_input = NULL,
sw->_get_display_value = _get_display_value;
sw->type = MODE_TYPE_SWITCHER;
return sw;
}
Mode *sw = g_malloc0(sizeof(*sw));
@ -599,6 +600,7 @@ Mode *script_mode_parse_setup(const char *str) {
sw->_get_icon = script_get_icon;
sw->_get_completion = NULL, sw->_preprocess_input = NULL,
sw->_get_display_value = _get_display_value;
sw->type = MODE_TYPE_SWITCHER;
return sw;
}