From 0c8e09d0a1b2743b28972a89796ae77f9aaa3862 Mon Sep 17 00:00:00 2001 From: Janmejay Singh Date: Sun, 20 Oct 2024 19:50:17 +0530 Subject: [PATCH] Rename Config::vi to Config::navigation_style --- src/app/clipboardserver.cpp | 2 +- src/common/appconfig.h | 4 ++-- src/gui/configurationmanager.cpp | 2 +- src/gui/mainwindow.cpp | 2 +- src/ui/configtabgeneral.ui | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/app/clipboardserver.cpp b/src/app/clipboardserver.cpp index 66eff6a15..295b9bc88 100644 --- a/src/app/clipboardserver.cpp +++ b/src/app/clipboardserver.cpp @@ -684,7 +684,7 @@ void ClipboardServer::loadSettings(AppConfig *appConfig) m_sharedData->editor = appConfig->option(); m_sharedData->maxItems = appConfig->option(); m_sharedData->textWrap = appConfig->option(); - m_sharedData->navigationStyle = appConfig->option(); + m_sharedData->navigationStyle = appConfig->option(); m_sharedData->saveOnReturnKey = !appConfig->option(); m_sharedData->moveItemOnReturnKey = appConfig->option(); m_sharedData->showSimpleItems = appConfig->option(); diff --git a/src/common/appconfig.h b/src/common/appconfig.h index 3185206a5..c229d895d 100644 --- a/src/common/appconfig.h +++ b/src/common/appconfig.h @@ -121,8 +121,8 @@ struct confirm_exit : Config { static Value defaultValue() { return true; } }; -struct vi : Config { - static QString name() { return QStringLiteral("vi"); } +struct navigation_style : Config { + static QString name() { return QStringLiteral("navigation_style"); } }; struct save_filter_history : Config { diff --git a/src/gui/configurationmanager.cpp b/src/gui/configurationmanager.cpp index dde280dd6..40cd3daa5 100644 --- a/src/gui/configurationmanager.cpp +++ b/src/gui/configurationmanager.cpp @@ -257,7 +257,7 @@ void ConfigurationManager::initOptions() bind(m_tabHistory->checkBoxMove); bind(m_tabGeneral->checkBoxClip); bind(m_tabGeneral->checkBoxConfirmExit); - bind(m_tabGeneral->comboBoxNavigationStyle); + bind(m_tabGeneral->comboBoxNavigationStyle); bind(m_tabGeneral->checkBoxSaveFilterHistory); bind(m_tabGeneral->checkBoxAutocompleteCommands); bind(m_tabGeneral->checkBoxAlwaysOnTop); diff --git a/src/gui/mainwindow.cpp b/src/gui/mainwindow.cpp index 98f61fa1d..7090165d4 100644 --- a/src/gui/mainwindow.cpp +++ b/src/gui/mainwindow.cpp @@ -2714,7 +2714,7 @@ void MainWindow::loadSettings(QSettings &settings, AppConfig *appConfig) setAlwaysOnTop(this, alwaysOnTop); setAlwaysOnTop(m_commandDialog.data(), alwaysOnTop); - m_options.navigationStyle = appConfig->option(); + m_options.navigationStyle = appConfig->option(); m_trayMenu->setNavigationStyle(m_options.navigationStyle); m_menu->setNavigationStyle(m_options.navigationStyle); diff --git a/src/ui/configtabgeneral.ui b/src/ui/configtabgeneral.ui index 60f117725..5ff2b7d70 100644 --- a/src/ui/configtabgeneral.ui +++ b/src/ui/configtabgeneral.ui @@ -156,7 +156,7 @@ 0 - + Navigation style / Keymap: