| 2169 | } |
| 2170 | |
| 2171 | void MainWindow::update_title_bar_text() |
| 2172 | { |
| 2173 | // Set the title |
| 2174 | QString title = QApplication::applicationName() + " v" + QApplication::applicationVersion(); |
| 2175 | AppConfig &app = AppConfig::Instance(); |
| 2176 | |
| 2177 | if (_title_ext_string != "" && app.appOptions.displayProfileInBar){ |
| 2178 | title += " [" + _title_ext_string + "]"; |
| 2179 | } |
| 2180 | |
| 2181 | if (_lst_title_string != title){ |
| 2182 | _lst_title_string = title; |
| 2183 | |
| 2184 | setWindowTitle(QApplication::translate("MainWindow", title.toLocal8Bit().data(), 0)); |
| 2185 | _title_bar->setTitle(this->windowTitle()); |
| 2186 | } |
| 2187 | } |
| 2188 | |
| 2189 | void MainWindow::load_demo_decoder_config(QString optname) |
| 2190 | { |