Skip to content

Commit

Permalink
Merge pull request #7462 from ccordoba12/dont-ask-again
Browse files Browse the repository at this point in the history
PR: Really hide reset namespace warning in IPython console
  • Loading branch information
ccordoba12 authored Jul 16, 2018
2 parents 9779258 + ca8aa98 commit e86db99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions spyder/widgets/ipythonconsole/shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ def reset_namespace(self, warning=False, silent=True, message=False):
# Update checkbox based on user interaction
CONF.set('ipython_console', 'show_reset_namespace_warning',
not box.is_checked())
self.ipyclient.reset_warning = not box.is_checked()

if answer != QMessageBox.Yes:
return
Expand Down
2 changes: 1 addition & 1 deletion spyder/widgets/shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
from qtpy.compat import getsavefilename
from qtpy.QtCore import Property, QCoreApplication, Qt, QTimer, Signal, Slot
from qtpy.QtGui import QKeySequence, QTextCharFormat, QTextCursor
from qtpy.QtWidgets import QApplication, QMenu, QMessageBox, QToolTip
from qtpy.QtWidgets import QApplication, QMenu, QToolTip

# Local import
from spyder.config.base import _, DEBUG, get_conf_path, STDERR
Expand Down

0 comments on commit e86db99

Please sign in to comment.