fixed some minor sillies
This commit is contained in:
parent
fabf38c736
commit
4356619a3c
1 changed files with 2 additions and 1 deletions
|
@ -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()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue