mirror of
https://github.com/arsenetar/dupeguru.git
synced 2026-01-22 22:51:39 +00:00
Removed extra_fairware_reminder.
With the introduction of dual-mode fairware, the presence of the extra fairware reminder has been made rather useless.
This commit is contained in:
@@ -20,7 +20,7 @@ JOBID2TITLE = {
|
||||
}
|
||||
|
||||
class DupeGuruView(FairwareView):
|
||||
def showExtraFairwareReminder(self): pass
|
||||
pass
|
||||
|
||||
class PyDupeGuruBase(PyFairware):
|
||||
FOLLOW_PROTOCOLS = ['Worker']
|
||||
@@ -191,7 +191,3 @@ class PyDupeGuruBase(PyFairware):
|
||||
ud = {'desc': JOBID2TITLE[jobid], 'jobid':jobid}
|
||||
proxy.postNotification_userInfo_('JobStarted', ud)
|
||||
|
||||
@dontwrap
|
||||
def show_extra_fairware_reminder(self):
|
||||
self.cocoa.showExtraFairwareReminder()
|
||||
|
||||
|
||||
@@ -1,37 +0,0 @@
|
||||
from objp.util import pyref, dontwrap
|
||||
from cocoa.inter import PyGUIObject
|
||||
from core.gui.extra_fairware_reminder import ExtraFairwareReminder
|
||||
|
||||
class ExtraFairwareReminderView:
|
||||
def startTimer(self): pass
|
||||
def stopTimer(self): pass
|
||||
def setButtonText_(self, text: str): pass;
|
||||
def enableButton(self): pass
|
||||
|
||||
class PyExtraFairwareReminder(PyGUIObject):
|
||||
def __init__(self, app: pyref):
|
||||
model = ExtraFairwareReminder(app.model)
|
||||
PyGUIObject.__init__(self, model)
|
||||
|
||||
def start(self):
|
||||
self.model.start()
|
||||
|
||||
def updateButton(self):
|
||||
self.model.update_button()
|
||||
|
||||
# model --> view
|
||||
@dontwrap
|
||||
def start_timer(self):
|
||||
self.callback.startTimer()
|
||||
|
||||
@dontwrap
|
||||
def stop_timer(self):
|
||||
self.callback.stopTimer()
|
||||
|
||||
@dontwrap
|
||||
def enable_button(self):
|
||||
self.callback.enableButton()
|
||||
|
||||
@dontwrap
|
||||
def set_button_text(self, text):
|
||||
self.callback.setButtonText_(text)
|
||||
Reference in New Issue
Block a user