mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-10-14 21:09:41 -07:00
auto load project only when project is not specified; fix alt menu weirdness on alt+tab
This commit is contained in:
1 parent
4d1d362ac1
commit
e7153e8910
3 files changed
+5
-4
No files matched your search
@@ -5143,6 +5143,7 @@ rd_window_frame(void)
|
||||
if(!window_is_focused || popup_is_open)
|
||||
{
|
||||
ws->menu_bar_key_held = 0;
|
||||
ws->menu_bar_focus_press_started = 0;
|
||||
}
|
||||
ws->window_temporarily_focused_ipc = 0;
|
||||
ui_select_state(ws->ui);
|
||||
@@ -11358,7 +11359,7 @@ rd_frame(void)
|
||||
}
|
||||
|
||||
//- rjf: try menu bar operations
|
||||
if(rd_state->alt_menu_bar_enabled)
|
||||
if(rd_state->alt_menu_bar_enabled && wm_window_is_focused(ws->os))
|
||||
{
|
||||
if(!take && event->kind == WM_EventKind_Press && event->key == WM_Key_Alt && event->modifiers == 0 && event->is_repeat == 0)
|
||||
{
|
||||
@@ -13283,7 +13284,7 @@ rd_frame(void)
|
||||
}
|
||||
|
||||
//- rjf: if just opened user -> load last project, if enabled
|
||||
if(kind == RD_CmdKind_OpenUser && rd_setting_b32_from_name(s("auto_load_last_project")))
|
||||
if(kind == RD_CmdKind_OpenUser && rd_setting_b32_from_name(s("auto_load_last_project")) && rd_state->project_path.size == 0)
|
||||
{
|
||||
CFG_Node *user = cfg_node_child_from_string(cfg_node_root(), s("user"));
|
||||
CFG_NodePtrList recent_projects = cfg_node_child_list_from_string(scratch.arena, user, s("recent_project"));
|
||||
|
||||
Reference in new issue
Block a user