mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-01-25 22:16:01 -05:00
Skip the tray restore/hide test of #1595 if there's no tray (fix CI build).
This commit is contained in:
parent
8646586c1a
commit
f305517724
@ -1095,8 +1095,11 @@ void TestGui::testDragAndDropKdbxFiles()
|
|||||||
|
|
||||||
void TestGui::testTrayRestoreHide()
|
void TestGui::testTrayRestoreHide()
|
||||||
{
|
{
|
||||||
QSystemTrayIcon *trayIcon = m_mainWindow->findChild<QSystemTrayIcon*>();
|
if (!QSystemTrayIcon::isSystemTrayAvailable()) {
|
||||||
|
QSKIP("QSystemTrayIcon::isSystemTrayAvailable() = false, skipping tray restore/hide test...");
|
||||||
|
}
|
||||||
|
|
||||||
|
QSystemTrayIcon* trayIcon = m_mainWindow->findChild<QSystemTrayIcon*>();
|
||||||
QVERIFY(m_mainWindow->isVisible());
|
QVERIFY(m_mainWindow->isVisible());
|
||||||
|
|
||||||
trayIcon->activated(QSystemTrayIcon::Trigger);
|
trayIcon->activated(QSystemTrayIcon::Trigger);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user