From 7783290161785b1c334bc5fe33b443494dfa4e92 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Sun, 11 Nov 2018 08:29:13 +0100 Subject: [PATCH] Add a tooltip --- common/dialogs/panel_common_settings_base.cpp | 2 ++ common/dialogs/panel_common_settings_base.fbp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/common/dialogs/panel_common_settings_base.cpp b/common/dialogs/panel_common_settings_base.cpp index 9c9096ecc8..01c07492a0 100644 --- a/common/dialogs/panel_common_settings_base.cpp +++ b/common/dialogs/panel_common_settings_base.cpp @@ -31,6 +31,8 @@ PANEL_COMMON_SETTINGS_BASE::PANEL_COMMON_SETTINGS_BASE( wxWindow* parent, wxWind bSizer6 = new wxBoxSizer( wxHORIZONTAL ); m_SaveTime = new wxSpinCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 10, 0 ); + m_SaveTime->SetToolTip( _("Delay after the first change to create a backup file of the board on disk.\nIf set to 0, auto backup is disabled") ); + bSizer6->Add( m_SaveTime, 0, wxLEFT|wxALIGN_CENTER_VERTICAL, 5 ); wxStaticText* minutesLabel; diff --git a/common/dialogs/panel_common_settings_base.fbp b/common/dialogs/panel_common_settings_base.fbp index 18d6d5c75a..a07c0f6ae5 100644 --- a/common/dialogs/panel_common_settings_base.fbp +++ b/common/dialogs/panel_common_settings_base.fbp @@ -276,7 +276,7 @@ wxSP_ARROW_KEYS ; forward_declare 0 - + Delay after the first change to create a backup file of the board on disk. If set to 0, auto backup is disabled