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:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user