diff options
author | Matthias Baumgartner <dev@igsor.net> | 2023-01-13 10:30:58 +0100 |
---|---|---|
committer | Matthias Baumgartner <dev@igsor.net> | 2023-01-13 10:30:58 +0100 |
commit | 17a0fbed3d4aaa2371c822a376ab06f0bc78e3fd (patch) | |
tree | 745f0cb5fca6abed8676eecedcce8103d77ff3f5 /tagit/windows | |
parent | 725921507c04e998c6ce1d4416af97a5e9470443 (diff) | |
download | tagit-17a0fbed3d4aaa2371c822a376ab06f0bc78e3fd.tar.gz tagit-17a0fbed3d4aaa2371c822a376ab06f0bc78e3fd.tar.bz2 tagit-17a0fbed3d4aaa2371c822a376ab06f0bc78e3fd.zip |
removed index and update functionality since they no longer apply
Diffstat (limited to 'tagit/windows')
-rw-r--r-- | tagit/windows/desktop.py | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/tagit/windows/desktop.py b/tagit/windows/desktop.py index bff983c..915980f 100644 --- a/tagit/windows/desktop.py +++ b/tagit/windows/desktop.py @@ -93,39 +93,9 @@ class MainWindow(FloatLayout): actions.ActionBuilder().get(action).single_shot(self, *args, **kwargs) - ## functions - - def autoindex(self, *args): - self.trigger('AutoImport') - - def autoupdate(self, *args): - self.trigger('AutoUpdate') - - ## startup and shutdown def on_startup(self): - # start index - autoindex = self.session.cfg('storage', 'index', 'autoindex') - autoindex = 0 if autoindex == float('inf') else autoindex - if autoindex > 0: - # autoindex is in minutes - Clock.schedule_interval(self.autoindex, autoindex * 60) - - # start update - autoupdate = self.session.cfg('storage', 'index', 'autoupdate') - autoupdate = 0 if autoupdate == float('inf') else autoupdate - if autoupdate > 0: - # autoupdate is in minutes - Clock.schedule_interval(self.autoupdate, autoupdate * 60) - - # trigger operations on startup - if self.session.cfg('storage', 'index', 'index_on_startup'): - self.autoindex() - - if self.session.cfg('storage', 'index', 'update_on_startup'): - self.autoupdate() - # switch to starting plane - if it's the dashboard no action is needed if self.session.cfg('ui', 'standalone', 'plane') == 'browsing': self.trigger('ShowBrowsing') @@ -178,18 +148,6 @@ Since you see this message, it's time to configure tagit. It's a good idea to ge ## config ## -config.declare(('storage', 'index', 'autoindex'), config.Float(), 0, - __name__, 'Autoindex', 'Time interval in minutes at which indexing is triggered while running the GUI. A value of 0 means that the feature is disabled. Also configure the index watchlist.') - -config.declare(('storage', 'index', 'autoupdate'), config.Float(), 0, - __name__, 'Autoupdate', 'Time interval in minutes at which updating is triggered while running the GUI. A value of 0 means that the feature is disabled.') - -config.declare(('storage', 'index', 'index_on_startup'), config.Bool(), False, - __name__, 'Index on startup', 'Trigger indexing when the GUI is started. Also configure the index watchlist') - -config.declare(('storage', 'index', 'update_on_startup'), config.Bool(), False, - __name__, 'Update on startup', 'Trigger updating when the GUI is started.') - config.declare(('session', 'first_start'), config.Bool(), True, __name__, 'First start', 'Show the welcome message typically shown when tagit is started the first time.') |