all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob d08a79c2f5064774b5f9b727d1acc722ad26c8fd 3863 bytes (raw)
name: gnu/packages/patches/converseen-hide-updates-checks.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
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
 
From 13dbaab0d3383b451f3efa225c3767c2eb376756 Mon Sep 17 00:00:00 2001
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Date: Mon, 20 Mar 2023 22:38:25 +0100
Subject: [PATCH] Remove updates checks from UI.

* ui/dialogoptions.ui:
* ui/mainwindow.ui:
* src/dialogoptions.cpp (DialogOptions::setAutoUpdates, DialogOptions::saveOptions):
(DialogOptions::loadSettings):
* src/mainwindowimpl.cpp (MainWindowImpl::createActions): Remove
references to updates checks.
---
 src/dialogoptions.cpp  | 19 -------------------
 src/mainwindowimpl.cpp |  1 -
 ui/dialogoptions.ui    | 16 ----------------
 ui/mainwindow.ui       |  9 ---------
 4 files changed, 45 deletions(-)

diff --git a/src/dialogoptions.cpp b/src/dialogoptions.cpp
index 704e75c..bb3f9b0 100755
--- a/src/dialogoptions.cpp
+++ b/src/dialogoptions.cpp
@@ -71,23 +71,10 @@ void DialogOptions::setOverwriteMode()
         IniSettings::setOverwriteMode(true);
 }
 
-void DialogOptions::setAutoUpdates()
-{
-    bool enabled;
-
-    if (checkCheckUpdates->isChecked())
-        enabled = true;
-    else
-        enabled = false;
-
-    IniSettings::setAutoChechUpdates(enabled);
-}
-
 void DialogOptions::saveOptions()
 {
     setLanguage();
     setOverwriteMode();
-    setAutoUpdates();
 
     IniSettings::settings->sync();
     accept();
@@ -102,12 +89,6 @@ void DialogOptions::loadSettings()
     else
         radioAskFirst->setChecked(true);
 
-    bool autoUpdates = IniSettings::isAutoChechUpdates();
-    if (autoUpdates)
-        checkCheckUpdates->setCheckState(Qt::Checked);
-    else
-        checkCheckUpdates->setCheckState(Qt::Unchecked);
-
     Translator t;
     
     int idx = comboLangs->findText(t.currentLanguage(), Qt::MatchExactly);
diff --git a/src/mainwindowimpl.cpp b/src/mainwindowimpl.cpp
index 2b6d68d..83a365f 100755
--- a/src/mainwindowimpl.cpp
+++ b/src/mainwindowimpl.cpp
@@ -164,7 +164,6 @@ void MainWindowImpl::createActions()
     connect(actionInfo, SIGNAL(triggered()), this, SLOT(about()));
     connect(actionDonatePaypal, SIGNAL(triggered()), this, SLOT(openPaypalLink()));
     connect(actionReportBug, SIGNAL(triggered()), this, SLOT(bugReport()));
-    connect(actionCheckForUpdates, SIGNAL(triggered()), this, SLOT(checkForUpdates()));
 }
 
 void MainWindowImpl::setupMenu()
diff --git a/ui/dialogoptions.ui b/ui/dialogoptions.ui
index e59148d..6cb23f5 100755
--- a/ui/dialogoptions.ui
+++ b/ui/dialogoptions.ui
@@ -66,22 +66,6 @@
      </layout>
     </widget>
    </item>
-   <item>
-    <widget class="QGroupBox" name="groupBox_3">
-     <property name="title">
-      <string>Updates</string>
-     </property>
-     <layout class="QVBoxLayout" name="verticalLayout_3">
-      <item>
-       <widget class="QCheckBox" name="checkCheckUpdates">
-        <property name="text">
-         <string>Checks for updates automatically</string>
-        </property>
-       </widget>
-      </item>
-     </layout>
-    </widget>
-   </item>
    <item>
     <layout class="QHBoxLayout" name="horizontalLayout_2">
      <item>
diff --git a/ui/mainwindow.ui b/ui/mainwindow.ui
index a5f55f0..28df8cc 100755
--- a/ui/mainwindow.ui
+++ b/ui/mainwindow.ui
@@ -190,7 +190,6 @@
     </property>
     <addaction name="actionDonatePaypal"/>
     <addaction name="separator"/>
-    <addaction name="actionCheckForUpdates"/>
     <addaction name="actionReportBug"/>
     <addaction name="separator"/>
    </widget>
@@ -1365,14 +1364,6 @@ p, li { white-space: pre-wrap; }
     <string>Import windows icon (*.ico *.icon)</string>
    </property>
   </action>
-  <action name="actionCheckForUpdates">
-   <property name="text">
-    <string>&amp;Check for updates</string>
-   </property>
-   <property name="toolTip">
-    <string>Check if a new version of Converseen is available</string>
-   </property>
-  </action>
  </widget>
  <customwidgets>
   <customwidget>
-- 
2.39.2


debug log:

solving d08a79c2f5 ...
found d08a79c2f5 in https://yhetil.org/guix/20230320221723.332511-1-mail@nicolasgoaziou.fr/

applying [1/1] https://yhetil.org/guix/20230320221723.332511-1-mail@nicolasgoaziou.fr/
diff --git a/gnu/packages/patches/converseen-hide-updates-checks.patch b/gnu/packages/patches/converseen-hide-updates-checks.patch
new file mode 100644
index 0000000000..d08a79c2f5

1:32: trailing whitespace.
 
1:50: trailing whitespace.
 
1:56: trailing whitespace.
 
1:64: trailing whitespace.
     
1:76: trailing whitespace.
 
Checking patch gnu/packages/patches/converseen-hide-updates-checks.patch...
Applied patch gnu/packages/patches/converseen-hide-updates-checks.patch cleanly.
warning: squelched 2 whitespace errors
warning: 7 lines add whitespace errors.

index at:
100644 d08a79c2f5064774b5f9b727d1acc722ad26c8fd	gnu/packages/patches/converseen-hide-updates-checks.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.