Fix visibility
This commit is contained in:
parent
d9a5064ea6
commit
ffe9852909
1 changed files with 3 additions and 12 deletions
|
@ -320,7 +320,8 @@ void MainWindow::onPositionChanged()
|
||||||
{
|
{
|
||||||
initScreens();
|
initScreens();
|
||||||
|
|
||||||
if (m_settings->visibility() == DockSettings::AlwaysHide) {
|
if (m_settings->visibility() == DockSettings::AlwaysHide ||
|
||||||
|
m_settings->visibility() == DockSettings::IntellHide) {
|
||||||
setVisible(false);
|
setVisible(false);
|
||||||
initSlideWindow();
|
initSlideWindow();
|
||||||
// Setting geometry needs to be displayed, otherwise it will be invalid.
|
// Setting geometry needs to be displayed, otherwise it will be invalid.
|
||||||
|
@ -329,17 +330,7 @@ void MainWindow::onPositionChanged()
|
||||||
updateViewStruts();
|
updateViewStruts();
|
||||||
|
|
||||||
m_hideTimer->start();
|
m_hideTimer->start();
|
||||||
}
|
} else if (m_settings->visibility() == DockSettings::AlwaysShow) {
|
||||||
|
|
||||||
if (m_settings->visibility() == DockSettings::AlwaysShow) {
|
|
||||||
setVisible(false);
|
|
||||||
initSlideWindow();
|
|
||||||
setVisible(true);
|
|
||||||
setGeometry(windowRect());
|
|
||||||
updateViewStruts();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (m_settings->visibility() == DockSettings::IntellHide) {
|
|
||||||
setVisible(false);
|
setVisible(false);
|
||||||
initSlideWindow();
|
initSlideWindow();
|
||||||
setVisible(true);
|
setVisible(true);
|
||||||
|
|
Loading…
Reference in a new issue