mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-12 23:35:33 +08:00
Reset windows size by pressing Shift+Alt
This commit is contained in:
@@ -298,6 +298,8 @@ namespace BlackGui
|
|||||||
if (g.isEmpty() || s.isEmpty()) { return false; }
|
if (g.isEmpty() || s.isEmpty()) { return false; }
|
||||||
window->restoreGeometry(g);
|
window->restoreGeometry(g);
|
||||||
window->restoreState(s);
|
window->restoreState(s);
|
||||||
|
const QString location = settings.fileName();
|
||||||
|
CLogMessage(this).info("GUI settings are here: '%1'") << location;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -325,7 +327,10 @@ namespace BlackGui
|
|||||||
}
|
}
|
||||||
if (m_saveMainWidgetState && !this->isSet(m_cmdWindowSizeReset))
|
if (m_saveMainWidgetState && !this->isSet(m_cmdWindowSizeReset))
|
||||||
{
|
{
|
||||||
this->restoreWindowGeometryAndState();
|
|
||||||
|
const Qt::KeyboardModifiers km = QGuiApplication::queryKeyboardModifiers();
|
||||||
|
const bool shiftAlt = km.testFlag(Qt::ShiftModifier) && km.testFlag(Qt::AltModifier);
|
||||||
|
if (!shiftAlt) { this->restoreWindowGeometryAndState(); }
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_splashScreen)
|
if (m_splashScreen)
|
||||||
|
|||||||
Reference in New Issue
Block a user