Browse Source

Remove older cfg items

pull/1468/head
Safihre 5 years ago
parent
commit
83cbab6318
  1. 4
      SABnzbd.py
  2. 1
      sabnzbd/cfg.py
  3. 7
      sabnzbd/interface.py

4
SABnzbd.py

@ -1177,9 +1177,7 @@ def main():
sabnzbd.WEB_COLOR = check_template_scheme(sabnzbd.cfg.web_color(), sabnzbd.WEB_DIR)
sabnzbd.cfg.web_color.set(sabnzbd.WEB_COLOR)
# Save the INI file
config.save_config(force=True)
# Handle the several tray icons
if sabnzbd.cfg.win_menu() and not sabnzbd.DAEMON:
if sabnzbd.WIN32:
import sabnzbd.sabtray

1
sabnzbd/cfg.py

@ -95,7 +95,6 @@ configlock = OptionBool("misc", "config_lock", 0)
##############################################################################
# One time trackers
##############################################################################
warned_old_queue = OptionNumber("misc", "warned_old_queue", QUEUE_VERSION)
sched_converted = OptionBool("misc", "sched_converted", False)
notified_new_skin = OptionNumber("misc", "notified_new_skin", 0)
direct_unpack_tested = OptionBool("misc", "direct_unpack_tested", False)

7
sabnzbd/interface.py

@ -371,12 +371,7 @@ class MainPage:
@secured_expose
def index(self, **kwargs):
if not cfg.notified_new_skin() and cfg.web_dir() != 'Glitter':
logging.warning(T('Try our new skin Glitter! Fresh new design that is optimized for desktop and mobile devices. Go to Config -> General to change your skin.'))
if not cfg.notified_new_skin():
cfg.notified_new_skin.set(1)
config.save_config()
# Redirect to wizard if no servers are set
if kwargs.get('skip_wizard') or config.get_servers():
info = build_header()

Loading…
Cancel
Save