chore: Remove Wayland experimental pop
This commit is contained in:
@ -31,10 +31,6 @@ void WaylandWarnings::Deps::showWaylandLibraryError(QWidget *parent) {
|
||||
messages::showWaylandLibraryError(parent);
|
||||
}
|
||||
|
||||
void WaylandWarnings::Deps::showWaylandExperimental(QWidget *parent) {
|
||||
messages::showWaylandExperimental(parent);
|
||||
}
|
||||
|
||||
//
|
||||
// WaylandWarnings
|
||||
//
|
||||
@ -55,11 +51,6 @@ void WaylandWarnings::showOnce(
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
if (!m_warningShown) {
|
||||
m_warningShown = true;
|
||||
m_pDeps->showWaylandExperimental(parent);
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace deskflow::gui::core
|
||||
|
||||
@ -29,7 +29,6 @@ class WaylandWarnings {
|
||||
public:
|
||||
struct Deps {
|
||||
virtual ~Deps() = default;
|
||||
virtual void showWaylandExperimental(QWidget *parent);
|
||||
virtual void showWaylandLibraryError(QWidget *parent);
|
||||
};
|
||||
|
||||
@ -44,7 +43,6 @@ public:
|
||||
|
||||
private:
|
||||
bool m_errorShown{false};
|
||||
bool m_warningShown{false};
|
||||
std::shared_ptr<Deps> m_pDeps;
|
||||
};
|
||||
|
||||
|
||||
@ -285,17 +285,6 @@ void showReadOnlySettings(QWidget *parent, const QString &systemSettingsPath) {
|
||||
.arg(nativePath));
|
||||
}
|
||||
|
||||
void showWaylandExperimental(QWidget *parent) {
|
||||
QMessageBox::information(
|
||||
parent, "Wayland support (experimental)",
|
||||
QString(
|
||||
"<p>Heads up!</p>"
|
||||
"<p>Wayland support is experimental and contains bugs.</p>"
|
||||
R"(<p>Please <a href="%1" style="color: %2">report bugs</a> to us if you find any.</p>)"
|
||||
"<p>Happy testing!</p>")
|
||||
.arg(kAppName, kUrlHelp, kColorSecondary));
|
||||
}
|
||||
|
||||
void showWaylandLibraryError(QWidget *parent) {
|
||||
QMessageBox::critical(
|
||||
parent, "Library problem",
|
||||
|
||||
@ -52,8 +52,6 @@ bool showClearSettings(QWidget *parent);
|
||||
|
||||
void showReadOnlySettings(QWidget *parent, const QString &systemSettingsPath);
|
||||
|
||||
void showWaylandExperimental(QWidget *parent);
|
||||
|
||||
void showWaylandLibraryError(QWidget *parent);
|
||||
|
||||
bool showUpdateCheckOption(QWidget *parent);
|
||||
|
||||
@ -27,7 +27,6 @@ using namespace deskflow::gui::core;
|
||||
|
||||
namespace {
|
||||
struct MockDeps : public WaylandWarnings::Deps {
|
||||
MOCK_METHOD(void, showWaylandExperimental, (QWidget *), (override));
|
||||
MOCK_METHOD(void, showWaylandLibraryError, (QWidget *), (override));
|
||||
};
|
||||
|
||||
@ -72,32 +71,6 @@ TEST(WaylandWarningsTests, showOnce_serverNoPortalIc_showLibraryError) {
|
||||
nullptr, CoreProcess::Mode::Server, hasEi, hasPortal, hasPortalIC);
|
||||
}
|
||||
|
||||
TEST(WaylandWarningTests, showOnce_clientNoPortalIc_showExperimental) {
|
||||
const auto deps = std::make_shared<MockDeps>();
|
||||
const bool hasEi = true;
|
||||
const bool hasPortal = true;
|
||||
const bool hasPortalIC = false;
|
||||
WaylandWarnings waylandWarnings(deps);
|
||||
|
||||
EXPECT_CALL(*deps, showWaylandExperimental(nullptr)).Times(1);
|
||||
|
||||
waylandWarnings.showOnce(
|
||||
nullptr, CoreProcess::Mode::Client, hasEi, hasPortal, hasPortalIC);
|
||||
}
|
||||
|
||||
TEST(WaylandWarningsTests, showOnce_serverHasPortalIc_showExperimentalOnly) {
|
||||
const auto deps = std::make_shared<MockDeps>();
|
||||
const bool hasEi = true;
|
||||
const bool hasPortal = true;
|
||||
const bool hasPortalIC = true;
|
||||
WaylandWarnings waylandWarnings(deps);
|
||||
|
||||
EXPECT_CALL(*deps, showWaylandExperimental(nullptr)).Times(1);
|
||||
|
||||
waylandWarnings.showOnce(
|
||||
nullptr, CoreProcess::Mode::Server, hasEi, hasPortal, hasPortalIC);
|
||||
}
|
||||
|
||||
TEST(WaylandWarningsTests, showOnce_failureCalledTwice_messageOnlyShownOnce) {
|
||||
const auto deps = std::make_shared<MockDeps>();
|
||||
const bool hasEi = false;
|
||||
@ -112,18 +85,3 @@ TEST(WaylandWarningsTests, showOnce_failureCalledTwice_messageOnlyShownOnce) {
|
||||
waylandWarnings.showOnce(
|
||||
nullptr, CoreProcess::Mode::Server, hasEi, hasPortal, hasPortalIC);
|
||||
}
|
||||
|
||||
TEST(WaylandWarningsTests, showOnce_successCalledTwice_messageOnlyShownOnce) {
|
||||
const auto deps = std::make_shared<MockDeps>();
|
||||
const bool hasEi = true;
|
||||
const bool hasPortal = true;
|
||||
const bool hasPortalIC = true;
|
||||
WaylandWarnings waylandWarnings(deps);
|
||||
|
||||
EXPECT_CALL(*deps, showWaylandExperimental(nullptr)).Times(1);
|
||||
|
||||
waylandWarnings.showOnce(
|
||||
nullptr, CoreProcess::Mode::Server, hasEi, hasPortal, hasPortalIC);
|
||||
waylandWarnings.showOnce(
|
||||
nullptr, CoreProcess::Mode::Server, hasEi, hasPortal, hasPortalIC);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user