unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob c5984963c351c0bd552f43c8cef4c54e73e39818 2502 bytes (raw)
name: gnu/packages/patches/goldendict-remove-check-for-update.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
 
diff --git i/config.cc w/config.cc
index 04b63f5..7a453d9 100644
--- i/config.cc
+++ w/config.cc
@@ -182,7 +182,7 @@ Preferences::Preferences():
   pronounceOnLoadPopup( false ),
   useInternalPlayer( InternalPlayerBackend::anyAvailable() ),
   internalPlayerBackend( InternalPlayerBackend::defaultBackend() ),
-  checkForNewReleases( true ),
+  checkForNewReleases( false ),
   disallowContentFromOtherSites( false ),
   enableWebPlugins( false ),
   hideGoldenDictHeader( false ),
@@ -867,8 +867,8 @@ Class load() THROW_SPEC( exError )
       c.preferences.proxyServer.systemProxyPassword = proxy.namedItem( "systemProxyPassword" ).toElement().text();
     }

-    if ( !preferences.namedItem( "checkForNewReleases" ).isNull() )
-      c.preferences.checkForNewReleases = ( preferences.namedItem( "checkForNewReleases" ).toElement().text() == "1" );
+    //if ( !preferences.namedItem( "checkForNewReleases" ).isNull() )
+    //  c.preferences.checkForNewReleases = ( preferences.namedItem( "checkForNewReleases" ).toElement().text() == "1" );

     if ( !preferences.namedItem( "disallowContentFromOtherSites" ).isNull() )
       c.preferences.disallowContentFromOtherSites = ( preferences.namedItem( "disallowContentFromOtherSites" ).toElement().text() == "1" );
@@ -1819,9 +1819,9 @@ void save( Class const & c ) THROW_SPEC( exError )
       proxy.appendChild( opt );
     }

-    opt = dd.createElement( "checkForNewReleases" );
-    opt.appendChild( dd.createTextNode( c.preferences.checkForNewReleases ? "1" : "0" ) );
-    preferences.appendChild( opt );
+    //opt = dd.createElement( "checkForNewReleases" );
+    //opt.appendChild( dd.createTextNode( c.preferences.checkForNewReleases ? "1" : "0" ) );
+    //preferences.appendChild( opt );

     opt = dd.createElement( "disallowContentFromOtherSites" );
     opt.appendChild( dd.createTextNode( c.preferences.disallowContentFromOtherSites ? "1" : "0" ) );
diff --git i/preferences.cc w/preferences.cc
index 72c3147..7e48f00 100644
--- i/preferences.cc
+++ w/preferences.cc
@@ -314,6 +314,7 @@ Preferences::Preferences( QWidget * parent, Config::Class & cfg_ ):
            this, SLOT( customProxyToggled( bool ) ) );

   ui.checkForNewReleases->setChecked( p.checkForNewReleases );
+  ui.checkForNewReleases->setEnabled( false );
   ui.disallowContentFromOtherSites->setChecked( p.disallowContentFromOtherSites );
   ui.enableWebPlugins->setChecked( p.enableWebPlugins );
   ui.hideGoldenDictHeader->setChecked( p.hideGoldenDictHeader );

debug log:

solving c5984963c3 ...
found c5984963c3 in https://yhetil.org/guix-patches/87tum8qfwo.fsf@sarg.org.ru/

applying [1/1] https://yhetil.org/guix-patches/87tum8qfwo.fsf@sarg.org.ru/
diff --git a/gnu/packages/patches/goldendict-remove-check-for-update.patch b/gnu/packages/patches/goldendict-remove-check-for-update.patch
new file mode 100644
index 0000000000..c5984963c3

Checking patch gnu/packages/patches/goldendict-remove-check-for-update.patch...
Applied patch gnu/packages/patches/goldendict-remove-check-for-update.patch cleanly.

index at:
100644 c5984963c351c0bd552f43c8cef4c54e73e39818	gnu/packages/patches/goldendict-remove-check-for-update.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).