Revert "Merge branch 'master' of https://github.com/Vindicus999/WiVRn"

This reverts commit 6212dccc2b, reversing
changes made to 80e31b642a.
This commit is contained in:
Vindicus999
2025-09-24 23:59:56 -04:00
parent 5d2b125cbf
commit 45900a5fde
101 changed files with 2290 additions and 8992 deletions
+1 -1
View File
@@ -25,7 +25,7 @@
Apps::Apps(QObject * parent)
{
auto apps = wivrn::list_applications();
auto apps = wivrn::list_applications(true /* Include steam apps */, false /* Don't load icons */);
for (const auto & [id, app]: apps)
{
+8 -9
View File
@@ -59,12 +59,6 @@ Kirigami.ApplicationWindow {
// Set the visible property here because dismissing the message removes the binding
if (value == WivrnServer.FailedToStart)
message_failed_to_start.visible = true;
if (root.first_run && started) {
console.log("First run");
root.pageStack.push(Qt.resolvedUrl("WizardPage.qml"));
root.first_run = false;
}
}
function onPairingEnabledChanged(value) {
@@ -90,6 +84,12 @@ Kirigami.ApplicationWindow {
if (WivrnServer.serverStatus == WivrnServer.Stopped)
WivrnServer.start_server();
if (root.first_run) {
console.log("First run");
root.pageStack.push(Qt.resolvedUrl("WizardPage.qml"));
root.first_run = false;
}
if (root.last_run_version != ApkInstaller.currentVersion) {
root.last_run_version = ApkInstaller.currentVersion;
}
@@ -305,12 +305,11 @@ Kirigami.ApplicationWindow {
level: 1
wrapMode: Text.WordWrap
text: i18n("Steam information")
opacity: steam_info.opacity
opacity: root.server_started
Layout.maximumHeight: root.server_started ? -1 : 0
}
SteamLaunchOptions {
id: steam_info
opacity: root.server_started && WivrnServer.steamCommand != ""
opacity: root.server_started
Layout.maximumHeight: root.server_started ? -1 : 0
}
-1
View File
@@ -290,7 +290,6 @@ Kirigami.ScrollablePage {
SelectGame {}
SteamLaunchOptions {
visible: WivrnServer.steamCommand != ""
Layout.topMargin: 2 * Kirigami.Units.largeSpacing
}
+6 -14
View File
@@ -507,37 +507,29 @@ void wivrn_server::on_server_properties_changed(const QString & interface_name,
void wivrn_server::setJsonConfiguration(QString new_configuration)
{
if (server_interface)
{
server_interface->setJsonConfiguration(m_jsonConfiguration = new_configuration);
jsonConfigurationChanged(new_configuration);
}
server_interface->setJsonConfiguration(m_jsonConfiguration = new_configuration);
jsonConfigurationChanged(new_configuration);
}
void wivrn_server::revoke_key(QString public_key)
{
if (server_interface)
server_interface->RevokeKey(public_key);
server_interface->RevokeKey(public_key);
}
void wivrn_server::rename_key(QString public_key, QString name)
{
if (server_interface)
server_interface->RenameKey(public_key, name);
server_interface->RenameKey(public_key, name);
}
QString wivrn_server::enable_pairing(int timeout_secs)
{
qDebug() << "Enabling pairing for" << timeout_secs << "seconds";
if (server_interface)
return server_interface->EnablePairing(timeout_secs).value();
return "";
return server_interface->EnablePairing(timeout_secs).value();
}
void wivrn_server::disable_pairing()
{
if (server_interface)
server_interface->DisablePairing();
server_interface->DisablePairing();
}
QString wivrn_server::hostname()