mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	citra-qt: update the separate window titles to use full_name and show Primary/Secondary identifier (#6712)
* citra-qt: update the separate window titles to use full_name and Primary/Secondary window identifier * build_fullname: remove trailing space
This commit is contained in:
		
							parent
							
								
									a537f56766
								
							
						
					
					
						commit
						19107cec4b
					
				
					 3 changed files with 7 additions and 9 deletions
				
			
		|  | @ -387,10 +387,6 @@ GRenderWindow::GRenderWindow(QWidget* parent_, EmuThread* emu_thread_, Core::Sys | |||
|                              bool is_secondary_) | ||||
|     : QWidget(parent_), EmuWindow(is_secondary_), emu_thread(emu_thread_), system{system_} { | ||||
| 
 | ||||
|     setWindowTitle(QStringLiteral("Citra %1 | %2-%3") | ||||
|                        .arg(QString::fromUtf8(Common::g_build_name), | ||||
|                             QString::fromUtf8(Common::g_scm_branch), | ||||
|                             QString::fromUtf8(Common::g_scm_desc))); | ||||
|     setAttribute(Qt::WA_AcceptTouchEvents); | ||||
|     auto layout = new QHBoxLayout(this); | ||||
|     layout->setContentsMargins(0, 0, 0, 0); | ||||
|  |  | |||
|  | @ -2783,9 +2783,13 @@ void GMainWindow::UpdateWindowTitle() { | |||
|     const QString full_name = QString::fromUtf8(Common::g_build_fullname); | ||||
| 
 | ||||
|     if (game_title.isEmpty()) { | ||||
|         setWindowTitle(tr("Citra %1").arg(full_name)); | ||||
|         setWindowTitle(QStringLiteral("Citra %1").arg(full_name)); | ||||
|     } else { | ||||
|         setWindowTitle(tr("Citra %1| %2").arg(full_name, game_title)); | ||||
|         setWindowTitle(QStringLiteral("Citra %1 | %2").arg(full_name, game_title)); | ||||
|         render_window->setWindowTitle( | ||||
|             QStringLiteral("Citra %1 | %2 | %3").arg(full_name, game_title, tr("Primary Window"))); | ||||
|         secondary_window->setWindowTitle(QStringLiteral("Citra %1 | %2 | %3") | ||||
|                                              .arg(full_name, game_title, tr("Secondary Window"))); | ||||
|     } | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue