Skip to content

Commit 4bdc2e8

Browse files
ComputerEliteComputerElite
authored andcommitted
Remove delete all mods button for now, fix launch settings button
1 parent c8f1524 commit 4bdc2e8

File tree

3 files changed

+1
-17
lines changed

3 files changed

+1
-17
lines changed

QuestAppVersionSwitcher/Assets/html/index.html

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,10 +208,6 @@ <h2>You can download mods and cosmetics from the following sites. Only QMods are
208208
<div class="button" id="checkUpdate">Check for QuestAppVersionSwitcher updates</div>
209209
<div class="buttonLabel">Checks if updates for QuestAppVersionSwitcher exist</div>
210210
</div>
211-
<div class="buttonContainer">
212-
<div class="button" id="deleteAllMods">Delete all mods</div>
213-
<div class="buttonLabel">Disables and deletes all mods frome the currently selected game</div>
214-
</div>
215211
<div class="buttonContainer">
216212
<div class="button" id="openSettings">Open Android settings</div>
217213
<div class="buttonLabel">Opens the settings activity of Android</div>

QuestAppVersionSwitcher/Assets/html/script.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -786,18 +786,6 @@ document.getElementById("grantAccess").onclick = () => {
786786
})
787787
}
788788

789-
document.getElementById("deleteAllMods").onclick = () => {
790-
fetch("deleteallmods").then(res => {
791-
res.text().then(t => {
792-
if(res.status == 200) {
793-
TextBoxGood("updateTextBox", t)
794-
} else {
795-
TextBoxError("updateTextBox", t)
796-
}
797-
})
798-
});
799-
}
800-
801789
document.getElementById("openSettings").onclick = () => {
802790
fetch("opensettings").then(res => {
803791
res.text().then(t => {

QuestAppVersionSwitcher/WebServer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ public void Start()
279279
}));
280280
server.AddRoute("GET", "/opensettings", new Func<ServerRequest, bool>(request =>
281281
{
282-
AndroidCore.context.StartActivity(new Intent(Android.Provider.Settings.ActionSettings));
282+
AndroidCore.context.StartActivity(AndroidCore.context.PackageManager.GetLaunchIntentForPackage("com.android.settings"));
283283
request.SendString("Alright", "application/json");
284284
return true;
285285
}));

0 commit comments

Comments
 (0)