1
0
Fork 0
mirror of synced 2024-07-03 21:51:10 +12:00
Commit graph

148 commits

Author SHA1 Message Date
Stelios Tsampas d5d795ce79 Paths: Query paths after the OrganizationName and ApplicationName have been set
At the point they were evaluated, `OrganizationName` and `ApplicationName` are unset
resulting in wrong paths. As a quick fix, explicitly set them to their later values
Per OS examples:
Windows:
	before:
		data: C:\Users\<user>\AppData\Local
		cache: C:\Users\<user>\AppData\Local\cache
	after:
		data: C:\Users\<user>\AppData\Local\Rare\Rare
		cache: C:\Users\<user>\AppData\Local\Rare\Rare\cache
2022-09-08 01:27:37 +03:00
loathingKernel 2c36ffcd51 Lgndr: Adjust for d8af06c936 2022-09-01 11:49:42 +03:00
loathingKernel 50a37be433 DownloadsTab: Remove dead code 2022-08-17 23:46:10 +03:00
loathingKernel c40fef0595 Lgndr: Transfer what DownloadThread does to install_game_real (not used yet)
DownloadThread: Refactor names to match Lgndr
2022-08-12 13:17:53 +03:00
loathingKernel 5e022e6d28 Lgndr: Rename a few fields to reflect legendary's names 2022-08-08 21:06:58 +03:00
loathingKernel e97e9fe841 Downloads: Add skip_dlcs and with_dlcs arguments. 2022-08-08 17:26:38 +03:00
loathingKernel 3ee789a695 Update DownloadThread 2022-08-03 02:33:50 +03:00
loathingKernel 38dfdc8bc2 Lgndr: Remove LegendaryCLISingleton
Since `LegendaryCLI` isn't stateful, we can instantiate
it when needed
2022-08-02 10:42:38 +03:00
loathingKernel 5ac71e99f0 DownloadThread: Use clean_post_install instead of local copy
InstallDialog: Handly empty `config_tags`
Lgndr: Cleanup
2022-08-02 10:42:38 +03:00
loathingKernel 785aaf648e GameInfo: Detect repair_and_update requirement
If a game was partially installed and it was imported
through the import functionality, if `repair_and_update`
is specified it will report `0` download size if there
is no real update to be done. Fix it by detecting the
need for an update explicitly.

This will also force games that have failed verification
to also update while repairing them, fixing the
long-standing issue of repairing an older version of a
game and then doing the update in a separate step.
2022-08-02 10:42:38 +03:00
loathingKernel 3501741c03 DownloadsTab: invalidate and recreate update widgets on import
Previously on game import, multiple update widgets for the same game
were created in the downloads tab. Instead of checking if a widget
already exists, invalidate the delete the existing and add a new one
with the current information about the installed game.
2022-08-02 10:42:38 +03:00
loathingKernel 3ecbae0564 Utils: Rename utils.py to misc.py to not confuse PyCharm checker 2022-08-02 10:42:38 +03:00
loathingKernel f51563ea93 Models: Move installation related models into their own file 2022-08-02 10:42:38 +03:00
loathingKernel ee5adce18b Implement LgndrIndirectLogger to return the last logged message from LegendaryAPI
The indirect return is stored in a `LgndrIndirectStatus` object that provides checking and unpacking features

Lgndr: `LgndrInstallGameArgs.install_tag` default to None
Lgndr: add default `move` method.
Lgndr: monkeypatch `dlm.status_queue` after preparing a download to reduce `InstallQueueItemModel`
InstallOptionsModel: implement `as_install_kwargs` to pass only relevant arguments to `LgndrInstallGameArgs` in InstallDialog
InstallOptionsModel: rename `sdl_list` to `install_tag` as they were the same thing
LegendaryUtils: Update to use `LgndrIndirectStatus`
UninstallDialog: Add option to keep configuration decoupled from keeping game data
GameUtils: Add messagebox to show error messages from legendary after uninstalling a game
InstallDialog: Update to use `LgndrIndirectStatus`
InstallDialog: Update selectable download handling to match legendary's
DownloadThread: Remove multiple instance variables, instead reference them directly from `InstallQueueItemModel` instance
ImportGroup: Replace `info_label` with an `ElideLabel` for displaying long messages
ImportGroup: Don't translate message strings in the `ImportWorker`
GameInfo: Call `repair()` if needed after verification instead of handling it locally
GamesTab: Fix string matching for capitalized strings and scroll to top on when searching
2022-08-02 10:42:38 +03:00
loathingKernel 197f915fb3 InstallOptionsModel: Rename fields to use the same names as Legendary's arguments 2022-08-02 10:42:38 +03:00
loathingKernel 99ab488820 Pass the correct status queue and monkeypatch run_real in prepare_download 2022-08-02 10:42:38 +03:00
Stelios Tsampas e58d33ee5d Create shim legendary classes for overloaded functions 2022-08-02 10:42:37 +03:00
Dummerle 87ea29d005
Fix appname error in game_info.py and error in postinstall 2022-07-10 01:18:19 +02:00
loathingKernel 5eb3ae7f80 Add SlidingStackedWidget from #196 2022-06-22 16:53:26 +03:00
Dummerle 8b723f7fcc
Update install prequisites, which raised an error 2022-04-13 01:08:27 +02:00
Stelios Tsampas d6ef44b2f9
Rare: Implement global objects as functions that return a single instance 2022-02-25 20:22:45 +02:00
Dummerle 8f83b4adde
Add download option to create a shortcut after installation 2022-02-04 22:15:32 +01:00
aznd 9b59707a10
Unify strings formatting (#158)
* Part 1: Unifying strings

* Part 2: Unifying strings

* Part 3: Unifying strings

* Fix missing close bracket

* Remove unneeded str()
2022-02-01 22:29:34 +01:00
Dummerle 9072a78461
Fix logging in download_thread.py printing negative time 2022-01-24 16:56:12 +01:00
Dummerle 0cea43f0d1
Add Epic Overlay Settings in Legendary Settings + Update Legendary submodule 2022-01-24 16:56:12 +01:00
Dummerle 0bc15be1f6
Fix Icon error for Ubuntu LTS, which uses QtAwesome 0.4.4 2022-01-05 15:44:29 +01:00
Stelios Tsampas 8f89eb6e88
Rare: pass through Black formatter 2021-12-27 00:37:13 +01:00
Dummerle 5cd942b9e8
Fix silent mode + refactoring: move window to center, when showing window 2021-12-22 21:21:49 +01:00
Dummerle b3fb9a50e7
Don't remove update widget after reparation finished and update available 2021-12-05 20:55:45 +01:00
Dummerle 32e3d1fd55
Remove games in dl_tab, when game uninstalled. 2021-12-05 20:36:29 +01:00
Dummerle 026d5374a3
Add Multiplatform support for MacOS and Win32 2021-12-05 19:47:03 +01:00
Stelios Tsampas 4071536f84
DownloadsTab: Add static labels to current download stats 2021-12-01 16:29:22 +02:00
Stelios Tsampas 3aed7bd79c
DownloadsTab: Rename ui files to convey what they are 2021-12-01 15:33:39 +02:00
Stelios Tsampas ff39393374
DownloadsTab: Move ui to the correct location 2021-12-01 15:32:15 +02:00
Dummerle c412c91c79
Use Ui files for Download tab 2021-11-30 23:54:01 +01:00
Dummerle 1abcf16583
Add update in dl tab, when imported game, with available update 2021-11-30 23:15:00 +01:00
Dummerle 8d4f25b8c2
More Fixes and cleanup:
- downloads: fix delete_later() and set installed widget and dl progress on same value
- about: use qt requests, to avoid long startups
- fix offline mode bugs
- set TextLabels in Store invisible
- fix origin launch
- remove unused files
2021-11-28 00:50:02 +01:00
Dummerle 0c5bd642e3
More fixes:
- remove widgets in dl tab after uninstalling
- fix verification error: worker was not started
2021-11-22 20:09:05 +01:00
Dummerle 72d05f6e53
Some optimization for macOS + workflow; cancel launch if confirm is activated; enable button, if queue widget deleted 2021-11-22 20:04:24 +01:00
Stelios Tsampas ad2d3016dd
DownloadsTab: Wrap updates and queue in a common scrollare 2021-11-22 20:58:50 +02:00
Dummerle b0125ba020
Many optimizations, bug fixes and other small fixes 2021-11-13 00:34:35 +01:00
Dummerle 8627484097
update_list() in games/__init__.py takes now a list of app_names, to update multiple games at same time
- verification signal is now connected
- signals are more consistent. Taking app_names instead of Game Models
2021-11-03 18:33:01 +01:00
Dummerle e994100182
Fix wrong connected signal in sync_widget.py 2021-10-18 00:20:41 +02:00
Dummerle 803347b935
Enable Update buttons, when stopping download.
Fix bug with launch subparser if app_name not exists
2021-10-18 00:08:35 +02:00
MultisampledNight dcaae46649
Fix crash in Downloads tab while startup 2021-10-15 15:27:20 +02:00
Dummerle a5f26c8a23 Rename shared.legendary_core to core 2021-10-14 23:18:13 +02:00
Dummerle 4f25fd8a20 Update new Signal System 2021-10-14 23:05:00 +02:00
Dummerle 3bf6692760 Add shared.py 2021-10-07 20:19:24 +02:00
Dummerle 3796db83c1 Fix updates; Fix dlc tab; Fix Game list update 2021-10-07 19:42:27 +02:00
Dummerle 22e51e096f Fix bug after download finished 2021-10-04 21:51:25 +02:00
Dummerle 4b5a0b0084 Add a new signal system 2021-09-29 23:22:47 +02:00
Dummerle ffa5976805 Many fixes, optimizations and improvements: Gameinfo page for origin games 2021-09-15 22:16:50 +02:00
Dummerle ba05cf3d2e some fixes for pylint 2021-09-13 22:44:59 +02:00
Dummerle c07992b982 Fix some memory leaks and some other errors 2021-09-12 23:28:54 +02:00
Dummerle 9570b52eed Add some options for debug; fix error in sync_widget.py; fix pylint workflow 2021-09-10 22:41:30 +02:00
Dummerle d11cc7abf3 add legendary submodule and rename custom_legendary to legendary in imports 2021-09-06 21:10:18 +02:00
Dummerle 134c06a726 Update translation and remove notify-py as dependency 2021-09-01 22:12:27 +02:00
Dummerle c2ae188745 Fix color of icons 2021-08-28 20:03:25 +02:00
Dummerle 83ad8f0982 Icon color depends on theme 2021-08-28 16:01:36 +02:00
Dummerle b3cc412142 Add an installing game widget to icon list 2021-08-28 00:16:17 +02:00
Dummerle 363fda6d5e Fix download bugs 2021-08-17 16:05:00 +02:00
Dummerle 96806274f9 Some fixes: Update gamelist; dl_tab.finished; AppImageBuilder.yml; install_dialog: auto verify 2021-08-16 20:41:33 +02:00
Dummerle a5997f62ab replace os.name with platform.system() to differentiate between mac and linux 2021-06-20 21:55:31 +02:00
Stelios Tsampas 9a307856f6 Ensure the result signal has been connected 2021-05-26 15:40:23 +03:00
Stelios Tsampas 0200347e72 Convert InstallDialog to modeless so it doesn't block the main UI any more. 2021-05-25 23:52:25 +03:00
Stelios Tsampas 181636f2be Connect all widgets to the get_download_info function. 2021-05-25 23:52:25 +03:00
Stelios Tsampas b0ec5c5fcb Move all download preparations inside InstallDialog.
InstallDialog now returns a InstallQueueItemModel ready
to be downloaded or queued.

Renamed a few model attributes to match legendary's names.

InstallDialog can be run silently for auto-downloads.
2021-05-25 23:52:25 +03:00
Stelios Tsampas 148cf0ff8e Add models for the download queue.
The addition of download_only option broke the download queue
due to different positional arguments and tuple indices. Since
using indices is awkward, models to represent the download
and each item in the queue itself were added.
2021-05-25 23:52:25 +03:00
Stelios Tsampas 494e078522 Fix remaining issues with the install dialog.
* Fix race condition between the sdl checkboxes.
* Fix default tag not been included in the list of tags.
* Delete InstallDialog on close.
* Specify parent for InstallDialog.
2021-05-25 23:52:25 +03:00
Stelios Tsampas 1131edda20 Add selective downloads 2021-05-25 23:52:25 +03:00
Stelios Tsampas 5ccf73d737 Update install dialog and remove the extraneous install info dialog 2021-05-25 23:52:25 +03:00
Dummerle 432cdede3a Add logir buttons with functions; optimize repair 2021-05-22 20:28:50 +02:00
Dummerle 3a39bac09c Reformatting and update german translation 2021-05-21 13:40:10 +02:00
Dummerle 9edfd302bd
Merge branch 'main' into dev 2021-05-21 13:20:58 +02:00
Dummerle d50ccc6e55 Add option for download only 2021-05-20 23:00:38 +02:00
Dummerle 760c75e45b Update German translation 2021-05-20 10:57:40 +02:00
Dummerle 4c99ff643d Option to update game without settings 2021-05-20 10:19:10 +02:00
Dummerle 2ee1ec1162 Import optimizations 2021-05-18 10:32:46 +02:00
Dummerle 83f1061e16 Optimize Library reload 2021-05-17 20:22:29 +02:00
Dummerle 5db828ab1d Show changed version in update widget 2021-05-12 23:06:44 +02:00
Dummerle 6deabf4a92 Reformatting, 1.3.0 2021-04-22 14:34:06 +02:00
Dummerle 517d94e641 Set parent of widgets for smoother startup 2021-04-17 18:58:18 +02:00
Dummerle 20663f4992 Download tab issues; Cleanup: use get_size from utils 2021-04-17 10:50:25 +02:00
Dummerle 4f71a9f436 Fix uninstall bug from game_info; disable update widget on auto update 2021-04-15 11:08:06 +02:00
Dummerle b13cbe24de Add Desktop Link for Windows: .bat file 2021-04-13 19:08:49 +02:00
Dummerle a03c29ff39
Merge pull request #40 from Dummerle/dev
Added some features
2021-04-13 11:35:24 +02:00
Dummerle d0e8d8bf4f Add option for auto-updates and refactor rare-settings 2021-04-13 10:56:42 +02:00
Dummerle cbb2ba0ab8 Option to disable notification after download 2021-04-13 10:31:26 +02:00
Dummerle 2b7f7b076f
Merge pull request #39 from Dummerle/dev
Dev
2021-04-12 14:27:48 +02:00
Dummerle b0dd8b18dd Fixed typos in Downloads, better download text in tab_widget.py 2021-04-12 14:24:10 +02:00
Dummerle dc2f622013 Show size in gb or mb 2021-04-11 21:02:56 +02:00
Dummerle 3c74dd5d02
Merge pull request #34 from Dummerle/dev
Add Download kill button
2021-04-11 17:06:08 +02:00
ChemicalXandco da8ef8dab8
Add stop download button (#33)
Add stop download button
Not a perfect solution, but it should work
2021-04-11 17:03:55 +02:00
Dummerle 089bde1210 Merge branch 'main' of github.com:Dummerle/Rare 2021-04-10 16:04:58 +02:00
Dummerle 12c6779187 Fixed Typo on Download finished 2021-04-10 16:03:04 +02:00
Dummerle f859afe43e Disable button on update game 2021-04-09 22:40:27 +02:00
Dummerle 52d0d31ed1 Round size in dl_queue_widget and after finishing updates show text "no updates", add argparse 2021-04-09 11:36:27 +02:00
BuildTools 63cfb6727b lowercase snake case 2021-04-07 22:42:30 +02:00