From a3f9fde2a2d43dd477f402bd4b8df2a1cd29ca43 Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Mon, 13 Nov 2023 10:40:41 +0300 Subject: 2023-11-13 --- patches/alejandra-no-noise.patch | 13 +++++++ patches/prismlauncher-allow-offline-accounts.patch | 24 ++++++++++++ patches/telegram-desktop-no-ads.patch | 45 ++++++++++++++++++++++ patches/vesktop-no-anime.patch | 17 ++++++++ 4 files changed, 99 insertions(+) create mode 100644 patches/alejandra-no-noise.patch create mode 100644 patches/prismlauncher-allow-offline-accounts.patch create mode 100644 patches/telegram-desktop-no-ads.patch create mode 100644 patches/vesktop-no-anime.patch (limited to 'patches') diff --git a/patches/alejandra-no-noise.patch b/patches/alejandra-no-noise.patch new file mode 100644 index 0000000..2675643 --- /dev/null +++ b/patches/alejandra-no-noise.patch @@ -0,0 +1,13 @@ +diff --git i/src/alejandra_cli/src/verbosity.rs w/src/alejandra_cli/src/verbosity.rs +index 9c739a7..c99f1f9 100644 +--- i/src/alejandra_cli/src/verbosity.rs ++++ w/src/alejandra_cli/src/verbosity.rs +@@ -7,7 +7,7 @@ pub(crate) enum Verbosity { + + impl Verbosity { + pub(crate) fn allows_info(&self) -> bool { +- matches!(self, Verbosity::Everything) ++ return false; + } + + pub(crate) fn allows_errors(&self) -> bool { diff --git a/patches/prismlauncher-allow-offline-accounts.patch b/patches/prismlauncher-allow-offline-accounts.patch new file mode 100644 index 0000000..c245066 --- /dev/null +++ b/patches/prismlauncher-allow-offline-accounts.patch @@ -0,0 +1,24 @@ +diff --git i/launcher/ui/pages/global/AccountListPage.cpp w/launcher/ui/pages/global/AccountListPage.cpp +index 278f45c4..b65cbbfb 100644 +--- i/launcher/ui/pages/global/AccountListPage.cpp ++++ w/launcher/ui/pages/global/AccountListPage.cpp +@@ -188,19 +188,6 @@ void AccountListPage::on_actionAddMicrosoft_triggered() + + void AccountListPage::on_actionAddOffline_triggered() + { +- if (!m_accounts->anyAccountIsValid()) { +- QMessageBox::warning( +- this, +- tr("Error"), +- tr( +- "You must add a Microsoft or Mojang account that owns Minecraft before you can add an offline account." +- "

" +- "If you have lost your account you can contact Microsoft for support." +- ) +- ); +- return; +- } +- + MinecraftAccountPtr account = OfflineLoginDialog::newAccount( + this, + tr("Please enter your desired username to add your offline account.") diff --git a/patches/telegram-desktop-no-ads.patch b/patches/telegram-desktop-no-ads.patch new file mode 100644 index 0000000..d066066 --- /dev/null +++ b/patches/telegram-desktop-no-ads.patch @@ -0,0 +1,45 @@ +diff --git i/Telegram/SourceFiles/data/data_sponsored_messages.cpp w/Telegram/SourceFiles/data/data_sponsored_messages.cpp +index fa21af469..263ea3e61 100644 +--- i/Telegram/SourceFiles/data/data_sponsored_messages.cpp ++++ w/Telegram/SourceFiles/data/data_sponsored_messages.cpp +@@ -179,39 +179,7 @@ bool SponsoredMessages::canHaveFor(not_null history) const { + } + + void SponsoredMessages::request(not_null history, Fn done) { +- if (!canHaveFor(history)) { +- return; +- } +- auto &request = _requests[history]; +- if (request.requestId || TooEarlyForRequest(request.lastReceived)) { +- return; +- } +- { +- const auto it = _data.find(history); +- if (it != end(_data)) { +- auto &list = it->second; +- // Don't rebuild currently displayed messages. +- const auto proj = [](const Entry &e) { +- return e.item != nullptr; +- }; +- if (ranges::any_of(list.entries, proj)) { +- return; +- } +- } +- } +- const auto channel = history->peer->asChannel(); +- Assert(channel != nullptr); +- request.requestId = _session->api().request( +- MTPchannels_GetSponsoredMessages( +- channel->inputChannel) +- ).done([=](const MTPmessages_sponsoredMessages &result) { +- parse(history, result); +- if (done) { +- done(); +- } +- }).fail([=] { +- _requests.remove(history); +- }).send(); ++ return; + } + + void SponsoredMessages::parse( diff --git a/patches/vesktop-no-anime.patch b/patches/vesktop-no-anime.patch new file mode 100644 index 0000000..5fd97ef --- /dev/null +++ b/patches/vesktop-no-anime.patch @@ -0,0 +1,17 @@ +diff --git i/static/views/splash.html w/static/views/splash.html +index 7cb571b..519c0f6 100644 +--- i/static/views/splash.html ++++ w/static/views/splash.html +@@ -30,12 +30,6 @@ + + +
+- shiggy +

Loading Vesktop...

+
+ -- cgit v1.2.3