1
0
Fork 0
mirror of synced 2024-07-02 21:20:54 +12:00
Commit graph

60 commits

Author SHA1 Message Date
loathingKernel c1a008dce1 MainWindow: Don't connect to the global exit signal
Instead of connecting to the global `exit_app` signal, pass the signals
through their respective widgets. Because signals are queued by
default, this ensures that slots are executed in the order they are
connected. Makes it cleaner to do cleanup procedures where they should
make sense, unlike the global signal, where it has to be inferred by
the widget instantiating order.
2022-10-23 16:08:27 +03:00
loathingKernel 28b2b7ea9b MainWindow: Handle active downloads when exiting through WM's close button.
When the closed through the WM's close button, `closeEvent()` is
 used directly. In this case the dialog in the `on_exit_app`
slot was skipped.

There is a mishandled case. If coming from logout while there
is an active download (Yes to logout -> No to stop download)
we end up in a weird state which I haven't investigated yet.

Signed-off-by: loathingKernel <142770+loathingKernel@users.noreply.github.com>
2022-10-23 00:01:30 +03:00
Stelios Tsampas afcb3f7e7a GameLaunchHelper: Allow closing the window only if the application has exited or crashed 2022-09-08 16:02:17 +03:00
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 afcdc1dea1 App: Move legendary initialization to the singleton
App: Move tray to MainWindow
Shared: Add destructor for singleton instances
2022-09-04 01:14:43 +03:00
loathingKernel 0a89f0e0b8 Make launch and alias for start 2022-09-02 13:17:05 +03:00
Dummerle f025047021
Add a check if qt found current screen. Fallback to primary screen 2022-05-03 23:08:22 +02:00
Dummerle 81da5faec9
Change Linux settings to default game settings 2022-03-21 23:01:53 +01:00
Dummerle 324530171e
Change kinetic scroll exceptions to property 2022-03-17 19:51:19 +01:00
Dummerle 66ae7c614f
Show wrapper widget for proton and mangohud with disabled button 2022-03-14 17:23:55 +01:00
Dummerle 8ba7791c82
Add kinetic scrolling and fix mouse wheel scrolling over combo boxes 2022-03-14 17:23:53 +01:00
Stelios Tsampas d6ef44b2f9
Rare: Implement global objects as functions that return a single instance 2022-02-25 20:22:45 +02:00
Dummerle 2e6890bfd9
Move appdata paths to utils/paths.py to avoid crashes, if PyQt5 does not exist (deb workflow) 2022-02-17 00:04:53 +01:00
Dummerle 080c8f8831
Fix error, if pypresence module not exist 2021-12-31 00:48:55 +01:00
Dummerle 454671f9da
Do not crash, if pypresence not exists 2021-12-27 00:37:13 +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 67003bb1b2
Fix bug, that window not appears on KDE 2021-12-22 19:27:43 +01:00
Dummerle e370841532
Fix many bugs:
- launch command
- offline mode
- shop search results shows more than 1 game
2021-12-09 20:03:34 +01:00
Stelios Tsampas 75d46a6370
MainWindow: Add statusbar 2021-12-04 18:55:45 +02:00
Dummerle b60fb43568
Some fixes and optimization 2021-11-29 01:23:33 +01:00
Dummerle db177e162f Some fixes for windows 2021-11-25 21:54:34 +01:00
Dummerle ef4f383673
Fix window size 2021-11-22 22:35:37 +01:00
Dummerle 4c9ef8acd8
Many fixes:
- store: updated epic api + many other fixes
- installing widget has now no border
- disable startmenu and desktop link on unsupported os
2021-11-22 20:02:58 +01:00
Stelios Tsampas c8a26da2bb
MainWindow: Default to a smaller size 2021-11-22 19:35:25 +02:00
Stelios Tsampas f4c2533642
MainWindow: Place main window in the screen it was started in and center it properly 2021-11-21 17:18:36 +02:00
Dummerle 0e88d3965f
Much optimization
- updating text in installed widgets
- move tab_widget.py to __init__.py
- errors at launching are now in a popup
- remove old sync widget
2021-11-17 23:02:33 +01:00
Dummerle 8b8c3a1f64
Rebasing cloud_save_update with main 2021-11-17 22:59:28 +01:00
Dummerle 1353f122c0
fix crash on startup, while changing size 2021-11-13 00:34:34 +01:00
Dummerle eda2bb038f
Fix bug with launch command 2021-11-05 19:01:35 +01: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
Dummerle 0dfb0cad9e
Fix launch command bug and uninstalled_names bug 2021-10-17 23:29:42 +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 df7964a79f Move api requests to login dialog 2021-10-03 21:29:33 +02:00
Dummerle 4b5a0b0084 Add a new signal system 2021-09-29 23:22:47 +02:00
Dummerle a143971385 Update Games list to ui file 2021-09-26 16:43:56 +02:00
Dummerle a94042f566 moved tab files to rare/components/tabs directory 2021-09-19 20:56:55 +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 c212904cc0
Merge branch 'shop' into update_shop 2021-08-22 22:43:08 +02:00
Dummerle 4cfe2bf336 merge branches 2021-08-16 22:50:31 +02:00
Dummerle 59a7359e19 Set cache_dir and data_dir in one place (xdg) 2021-08-08 00:49:27 +02:00
Stelios Tsampas dc2a99c2ee Terminate threads and handle cleanup.
* Set the `WA_DeleteOnClose` attribute for the MainWindow.
* Handle the case where `programdata_path` exists but is empty.
* Emit a signal from `LaunchDialog` instead of using `exit()`.
* Remove `LoginThread` as it was never deleted and caused a `SIGSEGV` on exit.
* Handle termination and deletion of `SteamThread` and `ImageThread`.
* Rename `finished` to `completed`, to not override the inherited `finished` signal.
* Emit a signal from Account widget to do cleanup instead of immediately quitting.
2021-06-24 20:08:22 +03:00
Dummerle 2db43ba066 Set Position of window to center 2021-05-02 13:15:11 +02:00
Dummerle 497a6009d0 Add offline mode and --offline option 2021-04-19 15:44:28 +02:00
Dummerle b86f356377 Add --silent option to launch minimized 2021-04-17 20:00:15 +02:00
Dummerle 517d94e641 Set parent of widgets for smoother startup 2021-04-17 18:58:18 +02:00
Dummerle 4653e519f9 Add timer to start from other inctance 2021-04-14 15:14:06 +02:00