Dan Stillman
5a6f1eef63
Update deprecated uses of Zotero.getZoteroDirectory()/getZoteroDatabase()
...
The Zotero.DataDirectory equivalents return string paths instead of nsIFile
instances, so some of these calls now just use Zotero.File.pathToFile(), which
can be removed when the surrounding code is updated to OS.File,
2016-11-27 00:17:56 -05:00
Dan Stillman
4c0abb6816
Point other profiles to new data dir after migration (+ code reorg)
...
Look for other profiles, from both apps (Firefox and Standalone), that
point to the data directory being migrated and update prefs.js in those
profiles to point to the new location.
Also reorganize code into Zotero.Profile and Zotero.DataDirectory
namespaces
2016-11-27 00:17:56 -05:00
Dan Stillman
c0bf2b91f6
Don't shut down Firefox on startup error (since 693c0286
)
2016-11-26 23:09:28 -05:00
Dan Stillman
412a7990b1
Don't perform automatic migration if there's an existing pipe
...
This prevents us from moving the data directory if the other app
(Firefox or Standalone) is running from the same directory.
Also clean up stub code in migration tests
2016-11-26 23:09:24 -05:00
Dan Stillman
678fe77fbb
Move auto-migration checks into checkForDataDirectoryMigration()
2016-11-24 01:18:25 -05:00
Dan Stillman
a4ab84eed3
Avoid CustomizableUI errors in test output
2016-11-23 00:41:22 -05:00
Dan Stillman
56d64af186
Remove Travis debugging
2016-11-23 00:41:14 -05:00
Dan Stillman
acb1be97d0
More Travis debugging
2016-11-23 00:11:01 -05:00
Dan Stillman
cb300005cd
More Travis debugging
2016-11-22 20:55:27 -05:00
Dan Stillman
84bb61ab7b
Fix test timeouts caused by Quick Copy initialization
...
When an export translator is selected for Quick Copy, Quick Copy
initialization triggers translator initialization a few seconds after
startup, because the translator code needs to be available synchronously
for drag/drop. A Quick Copy test was changing the setting to BibTeX,
which was resulting in random timeouts after subsequent resetDB() calls
due to slow translator loading. This change skips initialization in test
mode. This might actually fix a lot of timeouts on Travis in the second
half of the tests...
This also resets the Quick Copy pref in those tests so that it's left at
the default, though really we should automatically reset all prefs after
all test groups and in resetDB().
2016-11-22 20:31:58 -05:00
Dan Stillman
935d48013b
Travis debugging
2016-11-22 19:35:30 -05:00
Dan Stillman
c7700f2b96
Fix warning in translate test
2016-11-22 19:06:47 -05:00
Dan Stillman
a22d996aab
Revert to new default if legacy data dir set in pref is missing
2016-11-22 18:46:55 -05:00
Dan Stillman
693c0286ea
Slightly better handling of startup errors in Standalone
...
Run the startup error handler or show an alert with the startup error
string, and then quit Zotero
2016-11-22 18:46:55 -05:00
Dan Stillman
a4afb8c0c3
Wrap another showZoteroPaneProgressMeter call in a try/catch for safety
2016-11-22 03:41:15 -05:00
Dan Stillman
8383c5cda8
Ignore failure trying to show data dir migration status message
...
I saw this once in Standalone but haven't been able to reproduce it. (It
will now manifest as a progress bar without a status message.)
2016-11-22 03:32:16 -05:00
Dan Stillman
c2033ef5a1
Clearer status message during data dir migration
2016-11-22 03:20:54 -05:00
Dan Stillman
aaa20f4317
Update non-English strings
2016-11-22 02:33:05 -05:00
Dan Stillman
ef3e098586
Migrate data directory automatically on macOS and Linux
...
If data directory is within the profile directory and we can move the
subdirectories instantaneously with /bin/mv, just do it silently at startup.
2016-11-22 02:33:05 -05:00
Dan Stillman
288d0c7c06
Create 'profile' and 'Zotero' directories in temp dir for tests
2016-11-22 01:45:07 -05:00
Dan Stillman
fb1e87a2da
Update non-English locales
2016-11-21 05:19:18 -05:00
Dan Stillman
98e3a9addf
Allow immediate retry on partial data dir migration failure
...
A common cause of this on Windows will likely be open attachment files,
so suggest closing those and make retrying the default action.
2016-11-21 05:19:18 -05:00
Adomas Venčkauskas
0668faa584
Update connector ItemSaver constructor and misc refactoring
...
(should have been updated along with 3fc38d750
)
2016-11-21 11:45:34 +02:00
Dan Stillman
e8d8f4a0a3
Use spinner instead of items pane message for search
...
Fixes #1116 , and is generally more pleasant
2016-11-21 02:59:31 -05:00
Dan Stillman
335c3d0b98
Fix error creating context menu for independent save button
2016-11-20 03:04:38 -05:00
Dan Stillman
ce5328cbc4
Don't trigger translator loading in download-on-demand test
...
This was causing later tests to time out.
2016-11-20 02:46:04 -05:00
Dan Stillman
6c6a775be2
Fix migration tests in Fx45
...
`arguments` wasn't iterable until 46
2016-11-20 01:54:09 -05:00
Dan Stillman
249521f12b
Enable debugging for Travis error
2016-11-20 01:40:39 -05:00
Dan Stillman
aeaa0d12c7
Avoid console error if page closed before translators are available
...
Was showing up in some test runs
2016-11-20 01:31:47 -05:00
Dan Stillman
6d07cb44df
Fix Travis errors due to broken DirectoryIterator
2016-11-19 18:52:10 -05:00
Dan Stillman
d89da85606
Fix error when overwriting translation with some filename
2016-11-19 17:15:46 -05:00
Dan Stillman
efde92f1ee
Merge new English strings
2016-11-19 17:09:13 -05:00
Dan Stillman
ebc01db446
Fix "Zotero.Libraries.get(…).filesEditable is not a function"
...
Since da7da749
2016-11-18 04:54:42 -05:00
Dan Stillman
ef2a403d7b
More data dir fixes (after f2163b3433
and bc3386ff9d
)
...
Fixes error creating a new Standalone profile
2016-11-18 01:44:01 -05:00
Dan Stillman
0f5d2fea82
"Migrate Data Directory…" -> "Migrate To New Default Location…"
2016-11-16 23:04:22 -05:00
Dan Stillman
162c7198d3
Fix console error in Standalone trying to load toolbar icon
2016-11-16 12:42:08 -05:00
Dan Stillman
65a39417bf
Closes #1112 , Show "Upgrading database…" message
2016-11-16 12:41:49 -05:00
Dan Stillman
a1710c3307
Fix hang running tests (since d88cfc6c5f
)
2016-11-16 11:07:58 -05:00
Dan Stillman
bc3386ff9d
Tweak existing data directory detection
...
Fixes some issues after f2163b3433
2016-11-16 09:51:46 -05:00
Dan Stillman
71524d9087
Update locales from Transifex
2016-11-16 01:13:06 -05:00
Dan Stillman
4863670104
Display "Migration in progress — do not interrupt…" during migration
...
Would be nice to have a determinate progress meter on Windows, but that
will require enumerating all files, which maybe would just make things
slower. Might be safer, though, by discouraging people from
force-quitting.
2016-11-16 01:07:26 -05:00
Dan Stillman
062ff18596
Don't clear Zotero pane progress meter message by default
...
If showZoteroPaneProgressMeter() is called with the first argument
undefined, don't clear any existing message. To clear, pass
null/false/"". The message is also cleared when the progress meter is
hidden.
2016-11-16 01:06:54 -05:00
Dan Stillman
06ad369368
Create database when new data dir location is set in pref
...
Regression from new data directory handling
2016-11-16 00:38:58 -05:00
Dan Stillman
d88cfc6c5f
Make Zotero.Styles/Translators.init() wait until bundled files are updated
...
Fixes #1123 , Quick Copy error in console with new data directory
2016-11-15 03:38:27 -05:00
Dan Stillman
c6a2057340
Fixes to hasAttachments column
...
- Fix #1121 , sorting of hasAttachments column -- doesn't work if
hasAttachments is the active sort column on startup, since file states
have to be cached, but works for subsequent clicks on the column
- Don't sort linked URL attachments as missing
- Use hiDPI icon in all cases
2016-11-14 03:08:41 -05:00
Dan Stillman
d70ebce108
Show Styles tab before Word Processors in Cite preferences
2016-11-14 02:23:52 -05:00
Dan Stillman
d52d5aeb6c
Update locales from Transifex
2016-11-13 15:18:21 -05:00
Dan Stillman
62177e208d
Check DB lock before checking for restore-from-server marker
2016-11-13 04:55:51 -05:00
Dan Stillman
ce6a0ecb01
Tell connector to reinit after moving data directory
2016-11-13 04:55:51 -05:00
Dan Stillman
cfc7f36829
Don't send lockReleased on Standalone restart
...
This prevents Zotero for Firefox from starting up and shutting down when
Standalone is just restarting.
2016-11-13 04:55:51 -05:00