fixed some minor sillies

This commit is contained in:
Lynne Megido 2020-09-01 20:42:42 +10:00
parent fabf38c736
commit 4356619a3c
Signed by: lynnesbian
GPG Key ID: F0A184B5213D9F90

View File

@ -24,6 +24,7 @@ from gi.repository import Gtk
from pebble import ProcessPool from pebble import ProcessPool
import json, sys, webbrowser import json, sys, webbrowser
import os
from os import path from os import path
from threading import Thread from threading import Thread
from datetime import datetime from datetime import datetime
@ -258,7 +259,7 @@ class BuypeebApp:
if self.msgBox("Clear ended?", "Are you sure you want to clear all ended items from the watchlist?", buttons = Gtk.ButtonsType.OK_CANCEL) == Gtk.ResponseType.OK: if self.msgBox("Clear ended?", "Are you sure you want to clear all ended items from the watchlist?", buttons = Gtk.ButtonsType.OK_CANCEL) == Gtk.ResponseType.OK:
for id, item in self.settings.watchlist.items(): for id, item in self.settings.watchlist.items():
if not item.available: if not item.available:
del self.settings.watchlist[key] del self.settings.watchlist[id]
self.renderList() self.renderList()