mirror of
https://github.com/arsenetar/dupeguru.git
synced 2026-01-22 14:41: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:
@@ -80,7 +80,6 @@ class DupeGuru(RegistrableApplication, Broadcaster):
|
||||
# open_path(path)
|
||||
# reveal_path(path)
|
||||
# start_job(jobid, func, args=()) ( func(j, *args) )
|
||||
# show_extra_fairware_reminder()
|
||||
|
||||
# in fairware prompts, we don't mention the edition, it's too long.
|
||||
PROMPT_NAME = "dupeGuru"
|
||||
@@ -236,10 +235,6 @@ class DupeGuru(RegistrableApplication, Broadcaster):
|
||||
self.results.apply_filter(filter)
|
||||
self._results_changed()
|
||||
|
||||
def show_extra_fairware_reminder_if_needed(self):
|
||||
if self.results.mark_count > 100 and self.should_show_fairware_reminder:
|
||||
self.view.show_extra_fairware_reminder()
|
||||
|
||||
def clean_empty_dirs(self, path):
|
||||
if self.options['clean_empty_dirs']:
|
||||
while delete_if_empty(path, ['.DS_Store']):
|
||||
@@ -278,14 +273,12 @@ class DupeGuru(RegistrableApplication, Broadcaster):
|
||||
|
||||
if not self._check_demo():
|
||||
return
|
||||
self.show_extra_fairware_reminder_if_needed()
|
||||
jobid = JobType.Copy if copy else JobType.Move
|
||||
self.view.start_job(jobid, do)
|
||||
|
||||
def delete_marked(self, replace_with_hardlinks=False):
|
||||
if not self._check_demo():
|
||||
return
|
||||
self.show_extra_fairware_reminder_if_needed()
|
||||
self.view.start_job(JobType.Delete, self._do_delete, args=[replace_with_hardlinks])
|
||||
|
||||
def export_to_xhtml(self):
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
# Created By: Virgil Dupras
|
||||
# Created On: 2011-03-04
|
||||
# Copyright 2011 Hardcoded Software (http://www.hardcoded.net)
|
||||
#
|
||||
# This software is licensed under the "BSD" License as described in the "LICENSE" file,
|
||||
# which should be included with this package. The terms are also available at
|
||||
# http://www.hardcoded.net/licenses/bsd_license
|
||||
|
||||
import time
|
||||
|
||||
from hscommon.trans import tr
|
||||
from .base import GUIObject
|
||||
|
||||
class ExtraFairwareReminder(GUIObject):
|
||||
def start(self):
|
||||
self.start_time = time.time()
|
||||
self.view.start_timer()
|
||||
|
||||
def update_button(self):
|
||||
elapsed = time.time() - self.start_time
|
||||
remaining = 60 - round(elapsed)
|
||||
if remaining > 0:
|
||||
text = tr("Continue ({})").format(remaining)
|
||||
else:
|
||||
text = tr("Continue")
|
||||
self.view.enable_button()
|
||||
self.view.stop_timer()
|
||||
self.view.set_button_text(text)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user