summarylogtreecommitdiffstats
path: root/disable_version_check.patch
diff options
context:
space:
mode:
authorFrederik “Freso” S. Olesen2018-07-15 17:52:30 +0200
committerFrederik “Freso” S. Olesen2018-07-15 17:52:30 +0200
commit640534cd62171be3da331dac1e75b3553e2a0e61 (patch)
treea82d3e055a0510496cc2555a0075a0e30db0a5fd /disable_version_check.patch
parent8493187a278ba18b3cb21f878bab9ea87a403326 (diff)
downloadaur-640534cd62171be3da331dac1e75b3553e2a0e61.tar.gz
Update to 0.9.1(-emotefix)
A number of things have changed in upstream since 0.8.7, notably: * The license for the program as a whole has changed from MIT to GPL3 * It's now using gradle instead of ant for building For this and other reasons, a lot of the patches that were previously included is being dropped here on out, unless it turns out that they're desperately needed. The only thing being patched now is a variable that determines whether to do version checks (which is being disabled, as per upstream's recommendation), all other code is the same as upstream's. One thing this means is that the Chatty configuration will now live in `~/.chatty` instead of `~/.config/chatty` which may "break" some users' experience. I will post a note on the AUR page about this.
Diffstat (limited to 'disable_version_check.patch')
-rw-r--r--disable_version_check.patch73
1 files changed, 0 insertions, 73 deletions
diff --git a/disable_version_check.patch b/disable_version_check.patch
index 6eb142c5e585..86e5d3dae02a 100644
--- a/disable_version_check.patch
+++ b/disable_version_check.patch
@@ -12,76 +12,3 @@ Index: chatty-0.8.2/src/chatty/Chatty.java
/**
* The regular URL of the textfile where the most recent version is stored.
-Index: chatty-0.8.2/src/chatty/TwitchClient.java
-===================================================================
---- chatty-0.8.2.orig/src/chatty/TwitchClient.java 2016-04-26 22:47:26.953580371 +0200
-+++ chatty-0.8.2/src/chatty/TwitchClient.java 2016-04-26 22:51:15.054348837 +0200
-@@ -298,7 +298,7 @@
- checkForVersionChange();
- // Check version, if enabled in this build
- if (Chatty.VERSION_CHECK_ENABLED) {
-- checkNewVersion();
-+ //checkNewVersion();
- }
-
- // Connect or open connect dialog
-@@ -368,44 +368,7 @@
- * Checks for a new version if the last check was long enough ago.
- */
- private void checkNewVersion() {
-- if (!settings.getBoolean("checkNewVersion")) {
-- return;
-- }
-- /**
-- * Check if enough time has passed since the last check.
-- */
-- long ago = System.currentTimeMillis() - settings.getLong("versionLastChecked");
-- if (ago/1000 < CHECK_VERSION_INTERVAL) {
-- /**
-- * If not checking, check if update was detected last time.
-- */
-- String updateAvailable = settings.getString("updateAvailable");
-- if (!updateAvailable.isEmpty()) {
-- g.setUpdateAvailable(updateAvailable);
-- }
-- return;
-- }
-- settings.setLong("versionLastChecked", System.currentTimeMillis());
-- g.printSystem("Checking for new version..");
--
-- new Version(new VersionListener() {
-
-- @Override
-- public void versionChecked(String version, String info, boolean isNewVersion) {
-- if (isNewVersion) {
-- String infoText = "";
-- if (!info.isEmpty()) {
-- infoText = "[" + info + "] ";
-- }
-- g.printSystem("New version available: "+version+" "+infoText
-- +"(Go to <Help-Website> to download)");
-- g.setUpdateAvailable(version);
-- settings.setString("updateAvailable", version);
-- } else {
-- g.printSystem("You already have the newest version.");
-- }
-- }
-- });
- }
-
- /**
-Index: chatty-0.8.2/src/chatty/Version.java
-===================================================================
---- chatty-0.8.2.orig/src/chatty/Version.java 2016-04-26 22:47:26.953580371 +0200
-+++ chatty-0.8.2/src/chatty/Version.java 2016-04-26 22:51:48.071042729 +0200
-@@ -32,8 +32,8 @@
- }
-
- private void checkForNewVersion() {
-- LOGGER.info("Checking for new version..");
-- new Thread(new VersionChecker()).start();
-+ //LOGGER.info("Checking for new version..");
-+ //new Thread(new VersionChecker()).start();
- }
-
- /**