Procházet zdrojové kódy

made qt window title consistent

bunnei před 12 roky
rodič
revize
66a98ea686
2 změnil soubory, kde provedl 5 přidání a 1 odebrání
  1. 4 0
      src/citra_qt/main.cpp
  2. 1 1
      src/common/emu_window.h

+ 4 - 0
src/citra_qt/main.cpp

@@ -93,6 +93,10 @@ GMainWindow::GMainWindow()
     connect(GetHotkey("Main Window", "Load File", this), SIGNAL(activated()), this, SLOT(OnMenuLoadFile()));
     connect(GetHotkey("Main Window", "Start Emulation", this), SIGNAL(activated()), this, SLOT(OnStartGame()));
 
+    setWindowTitle(render_window->GetWindowTitle().c_str());
+
+    show();
+
     LogManager::Init();
     System::Init(render_window);
 }

+ 1 - 1
src/common/emu_window.h

@@ -67,7 +67,7 @@ public:
 protected:
     EmuWindow() : m_client_area_width(640), m_client_area_height(480) {
         char window_title[255];
-        sprintf(window_title, "citra-%s", Common::g_scm_desc);
+        sprintf(window_title, "Citra | %s-%s", Common::g_scm_branch, Common::g_scm_desc);
         m_window_title = window_title;
     }
     virtual ~EmuWindow() {}