| 116 | TabPreferences::~TabPreferences() {} |
| 117 | |
| 118 | void TabPreferences::UpdateUI(UpdateUIMode mode) { |
| 119 | (void)mode; |
| 120 | |
| 121 | Configurator &configurator = Configurator::Get(); |
| 122 | |
| 123 | this->ui->preferences_keep_running->blockSignals(true); |
| 124 | this->ui->preferences_keep_running->setChecked(configurator.GetUseSystemTray()); |
| 125 | this->ui->preferences_keep_running->blockSignals(false); |
| 126 | |
| 127 | this->ui->preferences_vk_home_text->blockSignals(true); |
| 128 | this->ui->preferences_vk_home_text->setText(::Path(Path::HOME).RelativePath().c_str()); |
| 129 | this->ui->preferences_vk_home_text->setToolTip(::Path(Path::HOME).AbsolutePath().c_str()); |
| 130 | this->ui->preferences_vk_home_text->blockSignals(false); |
| 131 | |
| 132 | this->ui->preferences_all_enabled_executables->blockSignals(true); |
| 133 | this->ui->preferences_all_enabled_executables->setEnabled(configurator.configuration_show_scope); |
| 134 | this->ui->preferences_all_enabled_executables->setCurrentIndex( |
| 135 | static_cast<int>(configurator.GetAllEnabledExecutableBehavior())); |
| 136 | this->ui->preferences_all_enabled_executables->blockSignals(false); |
| 137 | |
| 138 | this->ui->preferences_show_debug_settings->blockSignals(true); |
| 139 | this->ui->preferences_show_debug_settings->setChecked(configurator.GetUseLayerDebugMode()); |
| 140 | this->ui->preferences_show_debug_settings->blockSignals(false); |
| 141 | |
| 142 | this->ui->preferences_vk_download_text->blockSignals(true); |
| 143 | this->ui->preferences_vk_download_text->setText(::Path(Path::DOWNLOAD).RelativePath().c_str()); |
| 144 | this->ui->preferences_vk_download_text->setToolTip(::Path(Path::DOWNLOAD).AbsolutePath().c_str()); |
| 145 | this->ui->preferences_vk_download_text->blockSignals(false); |
| 146 | } |
| 147 | |
| 148 | void TabPreferences::CleanUI() {} |
| 149 |
no test coverage detected