Add Double-click Autopilot option to System->General preferences.

Translators:
Nomade: Please review the french System->General and make sure it reads properly
Damian: Please take care of translating panel_preferences_ascent_system.xml
miKa: Please update the translation of panel_preferences_ascent_system.xml so it reads properly.
This commit is contained in:
Lirusaito
2015-11-13 13:06:33 -05:00
parent 966be89d98
commit 855e1d9caa
6 changed files with 26 additions and 16 deletions

View File

@@ -7306,16 +7306,7 @@ void menu_toggle_double_click_control(void* user_data)
{
std::string setting(static_cast<char*>(user_data));
LLControlVariable* control(gSavedSettings.getControl(setting));
bool checked = control->get();
// Doubleclick actions - there can be only one
if (!checked)
{
if (setting == "DoubleClickAutoPilot")
gSavedSettings.setBOOL("DoubleClickTeleport", false);
else if (setting == "DoubleClickTeleport")
gSavedSettings.setBOOL("DoubleClickAutoPilot", false);
}
control->set(!checked);
control->set(!control->get());
}