Commits

Aleš Erjavec committed 4aade1f

Changed "Don't show at ..." check box text to "Show at ...".

Comments (0)

Files changed (3)

Orange/OrangeCanvas/application/canvasmain.py

         dialog.setWindowTitle(self.tr("Scheme Info"))
         dialog.setFixedSize(725, 450)
 
-        dialog.setDontShowAtNewScheme(
-            not settings.value(value_key, True, type=bool)
+        dialog.setShowAtNewScheme(
+            settings.value(value_key, True, type=bool)
         )
 
         return dialog
             stack.endMacro()
 
             # Store the check state.
-            settings.setValue(value_key, not dlg.dontShowAtNewScheme())
+            settings.setValue(value_key, dlg.showAtNewScheme())
         return status
 
     def show_scheme_properties_for(self, scheme, window_title=None):
         status = dialog.exec_()
         if status == QDialog.Accepted:
             # Store the check state.
-            settings.setValue(value_key, not dialog.dontShowAtNewScheme())
+            settings.setValue(value_key, dialog.showAtNewScheme())
 
         dialog.deleteLater()
 

Orange/OrangeCanvas/application/schemeinfo.py

         widget = StyledWidget(self, objectName="auto-show-container")
         check_layout = QHBoxLayout()
         check_layout.setContentsMargins(20, 10, 20, 10)
-        self.__dontShowAtNewSchemeCheck = \
-            QCheckBox(self.tr("Don't show again when I make a New Scheme."),
+        self.__showAtNewSchemeCheck = \
+            QCheckBox(self.tr("Show when I make a New Scheme."),
                       self,
                       objectName="auto-show-check",
                       checked=False,
                       )
 
-        check_layout.addWidget(self.__dontShowAtNewSchemeCheck)
+        check_layout.addWidget(self.__showAtNewSchemeCheck)
         check_layout.addWidget(
                QLabel(self.tr("You can edit and add Scheme Info later at the "
                               "bottom of the menu"),
 
         self.setLayout(layout)
 
-    def setDontShowAtNewScheme(self, checked):
-        """Set the 'Dont show at new scheme' check state.
+    def setShowAtNewScheme(self, checked):
         """
-        self.__dontShowAtNewSchemeCheck.setChecked(checked)
+        Set the 'Show at new scheme' check state.
+        """
+        self.__showAtNewSchemeCheck.setChecked(checked)
 
-    def dontShowAtNewScheme(self):
-        """Return the check state of the 'Dont show at new scheme' check box.
+    def showAtNewScheme(self):
         """
-        return self.__dontShowAtNewSchemeCheck.isChecked()
+        Return the check state of the 'Show at new scheme' check box.
+        """
+        return self.__showAtNewSchemeCheck.isChecked()
 
     def setAutoCommit(self, auto):
         if self.__autoCommit != auto:

Orange/OrangeCanvas/application/welcomedialog.py

         bottom_bar.setSizePolicy(QSizePolicy.MinimumExpanding,
                                  QSizePolicy.Maximum)
 
-        check = QCheckBox(self.tr("Dont'show again at startup"), bottom_bar)
+        check = QCheckBox(self.tr("Show at startup"), bottom_bar)
         check.setChecked(False)
 
         self.__showAtStartupCheck = check
         self.setFixedSize(620, 390)
 
     def setShowAtStartup(self, show):
-        if self.__showAtStartupCheck.isChecked() != (not show):
-            self.__showAtStartupCheck.setChecked(not show)
+        """
+        Set the 'Show at startup' check box state.
+        """
+        if self.__showAtStartupCheck.isChecked() != show:
+            self.__showAtStartupCheck.setChecked(show)
 
     def showAtStartup(self):
-        return not self.__showAtStartupCheck.isChecked()
+        """
+        Return the 'Show at startup' check box state.
+        """
+        return self.__showAtStartupCheck.isChecked()
 
     def addRow(self, actions, background="light-orange"):
         """Add a row with `actions`.