mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-03 19:07:11 -04: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
1 changed files with 4 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue