ArduPilot / ArduPilot/MissionPlanner

Menu Bar disappears when disabling autohide when autohide is enabled in config file

Open
#1,682 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
2.4k
Forks
2.9k
Avg merge
19h 16m
Merged PRs (30d)
4

Description

#### Issue details
When mission planner is started up with the menu bar autohide feature enabled in the saved config file, disabling autohide causes the menu bar to disappear as soon as the mouse cursor is moved away from the menu bar until mission planner is restarted.

This is being caused by a double registration of the MainMenu_MouseLeave() event handler on startup, once when MainV2 is initialised, and a second time when AutoHideMenu() is called whilst loading from the config file.

#### Version
1.3.50

#### Platform
[x] All
[ ] AntennaTracker
[ ] Copter
[ ] Plane
[ ] Rover
[ ] Sub

![image](https://user-images.githubusercontent.com/32720330/32637139-fc1d0a38-c61c-11e7-9335-f9ff64de0b90.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating MainV2 initialization, AutoHideMenu(), and the MainMenu_MouseLeave() handler, then trace both startup and saved-config loading paths. Reproduce the issue with autohide enabled in the config, disable it, and confirm the menu bar remains visible after the cursor leaves it without requiring a restart.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.