mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-14 00:52:04 +00:00
Fix an issue that on Linux the project name or model file name was not displayed in titlebar (#12706)
* optimize resize feature on Linux * fix the black screen issue on app startup on Linux * Fixed an issue that Filament Grouping dialog always popup on Linux * Fix an issue that on Linux the project name or model file name was not displayed in title bar
This commit is contained in:
@@ -42,7 +42,7 @@ cmake --build build/arm64 --config RelWithDebInfo --target all --
|
|||||||
### Building on Linux
|
### Building on Linux
|
||||||
**Always use this command to build the project when testing build issues on Linux.**
|
**Always use this command to build the project when testing build issues on Linux.**
|
||||||
```bash
|
```bash
|
||||||
cmake --build build/arm64 --config RelWithDebInfo --target all --
|
cmake --build build --config RelWithDebInfo --target all --
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -10416,13 +10416,13 @@ void Plater::priv::set_project_name(const wxString& project_name)
|
|||||||
BOOST_LOG_TRIVIAL(trace) << __FUNCTION__ << __LINE__ << " project is:" << project_name;
|
BOOST_LOG_TRIVIAL(trace) << __FUNCTION__ << __LINE__ << " project is:" << project_name;
|
||||||
m_project_name = project_name;
|
m_project_name = project_name;
|
||||||
//update topbar title
|
//update topbar title
|
||||||
#ifdef __WINDOWS__
|
#ifdef __APPLE__
|
||||||
wxGetApp().mainframe->SetTitle(m_project_name + " - OrcaSlicer");
|
|
||||||
wxGetApp().mainframe->topbar()->SetTitle(m_project_name);
|
|
||||||
#else
|
|
||||||
wxGetApp().mainframe->SetTitle(m_project_name);
|
wxGetApp().mainframe->SetTitle(m_project_name);
|
||||||
if (!m_project_name.IsEmpty())
|
if (!m_project_name.IsEmpty())
|
||||||
wxGetApp().mainframe->update_title_colour_after_set_title();
|
wxGetApp().mainframe->update_title_colour_after_set_title();
|
||||||
|
#else
|
||||||
|
wxGetApp().mainframe->SetTitle(m_project_name + " - OrcaSlicer");
|
||||||
|
wxGetApp().mainframe->topbar()->SetTitle(m_project_name);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -10437,11 +10437,12 @@ void Plater::priv::update_title_dirty_status()
|
|||||||
else
|
else
|
||||||
title = m_project_name;
|
title = m_project_name;
|
||||||
|
|
||||||
#ifdef __WINDOWS__
|
#ifdef __APPLE__
|
||||||
wxGetApp().mainframe->topbar()->SetTitle(title);
|
|
||||||
#else
|
|
||||||
wxGetApp().mainframe->SetTitle(title);
|
wxGetApp().mainframe->SetTitle(title);
|
||||||
wxGetApp().mainframe->update_title_colour_after_set_title();
|
wxGetApp().mainframe->update_title_colour_after_set_title();
|
||||||
|
#else
|
||||||
|
wxGetApp().mainframe->SetTitle(title);
|
||||||
|
wxGetApp().mainframe->topbar()->SetTitle(title);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user