Skip to content

Commit

Permalink
Rename Config::vi to Config::navigation_style
Browse files Browse the repository at this point in the history
  • Loading branch information
janmejay authored and hluk committed Oct 21, 2024
1 parent 5bd58d8 commit 0c8e09d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/app/clipboardserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ void ClipboardServer::loadSettings(AppConfig *appConfig)
m_sharedData->editor = appConfig->option<Config::editor>();
m_sharedData->maxItems = appConfig->option<Config::maxitems>();
m_sharedData->textWrap = appConfig->option<Config::text_wrap>();
m_sharedData->navigationStyle = appConfig->option<Config::vi>();
m_sharedData->navigationStyle = appConfig->option<Config::navigation_style>();
m_sharedData->saveOnReturnKey = !appConfig->option<Config::edit_ctrl_return>();
m_sharedData->moveItemOnReturnKey = appConfig->option<Config::move>();
m_sharedData->showSimpleItems = appConfig->option<Config::show_simple_items>();
Expand Down
4 changes: 2 additions & 2 deletions src/common/appconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ struct confirm_exit : Config<bool> {
static Value defaultValue() { return true; }
};

struct vi : Config<NavigationStyle> {
static QString name() { return QStringLiteral("vi"); }
struct navigation_style : Config<NavigationStyle> {
static QString name() { return QStringLiteral("navigation_style"); }
};

struct save_filter_history : Config<bool> {
Expand Down
2 changes: 1 addition & 1 deletion src/gui/configurationmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ void ConfigurationManager::initOptions()
bind<Config::move>(m_tabHistory->checkBoxMove);
bind<Config::check_clipboard>(m_tabGeneral->checkBoxClip);
bind<Config::confirm_exit>(m_tabGeneral->checkBoxConfirmExit);
bind<Config::vi>(m_tabGeneral->comboBoxNavigationStyle);
bind<Config::navigation_style>(m_tabGeneral->comboBoxNavigationStyle);
bind<Config::save_filter_history>(m_tabGeneral->checkBoxSaveFilterHistory);
bind<Config::autocompletion>(m_tabGeneral->checkBoxAutocompleteCommands);
bind<Config::always_on_top>(m_tabGeneral->checkBoxAlwaysOnTop);
Expand Down
2 changes: 1 addition & 1 deletion src/gui/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2714,7 +2714,7 @@ void MainWindow::loadSettings(QSettings &settings, AppConfig *appConfig)
setAlwaysOnTop(this, alwaysOnTop);
setAlwaysOnTop(m_commandDialog.data(), alwaysOnTop);

m_options.navigationStyle = appConfig->option<Config::vi>();
m_options.navigationStyle = appConfig->option<Config::navigation_style>();
m_trayMenu->setNavigationStyle(m_options.navigationStyle);
m_menu->setNavigationStyle(m_options.navigationStyle);

Expand Down
2 changes: 1 addition & 1 deletion src/ui/configtabgeneral.ui
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
<number>0</number>
</property>
<item>
<widget class="QLabel" name="label">
<widget class="QLabel" name="label_nav_style">
<property name="text">
<string>Navigation style / Keymap:</string>
</property>
Expand Down

0 comments on commit 0c8e09d

Please sign in to comment.