Commit Graph

1044 Commits

Author SHA1 Message Date
Terry MacDonald
3e150cc28b Success moving main taskbar without explorer restart
Woo hoo! I managed to make the main taskbar move by sending a custom message I found that Windows 10 sends to the main taskbar.
2022-02-04 17:37:52 +13:00
Terry MacDonald
c45e66275a [WIP] Removing manual setting of taskbar location in DM
The idea should be to make the changes directly to windows, and DisplayMagician will set things up the same as it recorded you'd set.
2022-02-03 09:20:06 +13:00
Terry MacDonald
3b34d6943d [WIP] Fixed taskbar ProfileSettingsFOrm 2022-02-02 21:59:00 +13:00
Terry MacDonald
a13aa60258 [WIP] TaskBar changes 2022-02-02 11:44:13 +13:00
Terry MacDonald
c9a349125d [WIP] Added forcing taskbar edge ability 2022-02-02 11:25:11 +13:00
Terry MacDonald
f6e5dbc0b7 [WIP] Refactor for taskbar code
Partially through a different refactor to completely change how the taskbar settigns are stored, and the logic behind the application. Should make the taskbar more robust to apply.
2022-02-01 22:04:08 +13:00
dependabot[bot]
fac8d53874
Bump McMaster.Extensions.CommandLineUtils from 4.0.0 to 4.0.1
Bumps [McMaster.Extensions.CommandLineUtils](https://github.com/natemcmaster/CommandLineUtils) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/natemcmaster/CommandLineUtils/releases)
- [Changelog](https://github.com/natemcmaster/CommandLineUtils/blob/main/CHANGELOG.md)
- [Commits](https://github.com/natemcmaster/CommandLineUtils/compare/v4.0.0...v4.0.1)

---
updated-dependencies:
- dependency-name: McMaster.Extensions.CommandLineUtils
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-01 08:23:14 +00:00
Terry MacDonald
cd25f9a0fa [WIP] Partially working taskbar moving 2022-01-30 20:24:36 +13:00
Terry MacDonald
71505faa13 Updated assemblyinfo 2022-01-29 16:47:04 +13:00
Terry MacDonald
9e7a8ad217 Final Desktop Context Menu design
IMPORTANT: The Desktop Context Menu will be installed again with each new version of DisplayMagician. This may be changed in the future when the DisplayMagician installer is updated.
2022-01-29 16:28:05 +13:00
Terry MacDonald
75b7d9f646 Attempt at a working context menu install/uninstall process
Fixes #77.
2022-01-29 16:19:16 +13:00
Terry MacDonald
3eb0b41846 Added some error messaging 2022-01-29 16:17:28 +13:00
Terry MacDonald
f1657bef82 Added a basic runtime context menu installer 2022-01-29 16:09:18 +13:00
Terry MacDonald
1b07ed72c7 Fixed Desktop Context Menu to use v2.2.0 profile format 2022-01-29 15:30:49 +13:00
Terry MacDonald
362088b5e3 Added checks to pause updating displayconfig while display change occurring
Added some checks to temporarily pause any 'getconfig' type activities while we're changing the displayconfig. This should result in less config corruption, and fewer errors when there are timing edge cases.
2022-01-29 15:25:52 +13:00
Terry MacDonald
76ec3d6426 Fixed bug in TaskBar processing when ni edge available 2022-01-29 14:55:24 +13:00
Terry MacDonald
5577adb9b2 Added message about recreating DisplayProfiles back in
Turns out we do need to make sure that all users recreate their display profiles to handle the new taskbar settings
2022-01-28 17:35:36 +13:00
Terry MacDonald
c1d9577ed1 Merge branch 'develop' of https://github.com/terrymacdonald/DisplayMagician into develop 2022-01-28 17:26:04 +13:00
Terry MacDonald
338c310c2b Made build 2022-01-28 17:25:35 +13:00
Terry MacDonald
b12815dcff Fixed mistaken file copy 2022-01-28 17:18:20 +13:00
Terry MacDonald
7d0c8e1ca4 Updated NVIDIALibrary and WinLibrary to latest version 2022-01-28 17:04:42 +13:00
Terry MacDonald
4661ffb72f Removed restart logic from WinLibrary 2022-01-25 09:42:50 +13:00
Terry MacDonald
90149e1d9d Merged develop into feature-taskbar-setting branch 2022-01-25 09:30:23 +13:00
Terry MacDonald
be30996020 Changed the message shown to users to remove recreate message
We are able to patch the taskbar settings in DisplayProfiles without needing to get the users to remake their display proifiles. This changes the messaging to users.

This changes *should* be the last ones needed to get taskbar setting integrated. Fixes #78 (as much as we can fix it).
2022-01-25 09:28:13 +13:00
terrymacdonald
c32edfd18d
Merge pull request #82 from terrymacdonald/dependabot/nuget/develop/NUnit3TestAdapter-4.2.1
Bump NUnit3TestAdapter from 4.2.0 to 4.2.1
2022-01-24 23:14:28 +13:00
Terry MacDonald
f40863685c Modify tasbkarsettings to only get the useful settings
Also updated the code comments to describe the various values and what they mean.
2022-01-24 21:39:49 +13:00
dependabot[bot]
f0a931cb14
Bump NUnit3TestAdapter from 4.2.0 to 4.2.1
Bumps [NUnit3TestAdapter](https://github.com/nunit/nunit3-vs-adapter) from 4.2.0 to 4.2.1.
- [Release notes](https://github.com/nunit/nunit3-vs-adapter/releases)
- [Commits](https://github.com/nunit/nunit3-vs-adapter/compare/V4.2.0...V4.2.1)

---
updated-dependencies:
- dependency-name: NUnit3TestAdapter
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-24 08:26:50 +00:00
Terry MacDonald
b6e0f83163 Working windows taskbar location tracking
Works on Win 10, and partially on Win 11. Win11 won't update the main window until explorer.exe is restarted :(. There is talk that an upcoming Win 11 update will change that behaviour.
2022-01-23 22:45:02 +13:00
Terry MacDonald
918e3cda04 Initial working TaskBar position changes
Note - doesn't work n Windows 11.
2022-01-23 10:33:14 +13:00
Terry MacDonald
587814409a [WIP] Added in TaskBarSettings and restarting explorer 2022-01-22 15:35:25 +13:00
Terry MacDonald
f860b91a72 Enforced update to file format v2.2 2022-01-21 20:37:56 +13:00
Terry MacDonald
f5a8a05e63 Removed unused settings 2022-01-21 18:34:31 +13:00
Terry MacDonald
195820bea6 Make load profile function handle later versions of config file
This change makes the ProfileRepository handle loading json config files from later versions of DM without causing an exception. This will mean that you can install later model config files and still have them work ok.
2022-01-21 18:09:04 +13:00
Terry MacDonald
b50b49af74 Updated some error levels 2022-01-19 22:35:50 +13:00
Terry MacDonald
29b592a6d1 Initial attempt at recording taskbar location
Used some of Soroush Falahati's amazing code, and now have the potential for storing the taskbar display layout. This unfortunately requires a display config change, so I will need to engineer some backwards compatibility.
2022-01-19 22:02:57 +13:00
Terry MacDonald
b148d7484a Updated HDR colour setting logic
The NVIDIA HDR colour logic was flawed, and wouldn't always apply properly. These logic changes now set the NVIDIA HDR colour back to windows controlled each time  so the settings are at a known inital logical state. Then winlibray can set the windows HDR mode, and NVIDIA can set the NVIDIA HDR mode.
2022-01-18 20:43:45 +13:00
Terry MacDonald
3c0ee6d37b Added automatic admin right detection for start programs
Fixes @erbkaiser error he found.
2022-01-17 22:25:07 +13:00
Terry MacDonald
21b9cae0d5 Added 'Send to Clipboard' option
Adds #79.

Also added popup menu to DisplayProfile window as it was missing.
2022-01-17 21:07:48 +13:00
Terry MacDonald
d6b0a51b19 Fixed toast notifications 2022-01-17 19:58:51 +13:00
Terry MacDonald
e2b1b1afa1 Attempts to get Windows Toasts working again
Since I multithreaded DIsplayMagician the Windows toasts don't work when DM is installed (they work when testing as I use another mechanism for that). This was my first session trying to troubleshoot that.
2022-01-13 21:41:18 +13:00
Terry MacDonald
100d04e057 Removed unneeded semaphoreslim release 2022-01-13 18:31:55 +13:00
Terry MacDonald
8bc028a99e Made semaphoreslim work reliably
Had always expected that the semaphore slim would need to be released, but now that I made other changes it needed a check before releasing.
2022-01-13 18:25:43 +13:00
Terry MacDonald
60f3d191df Fixed the exception errors while cancelling shortcut 2022-01-10 21:58:53 +13:00
Terry MacDonald
d24b15d37a [WIP] Threading improvements
Found that I was combining Threads and Tasks together...never a good idea. Have moved fully over to a Task based model. Now still having issues with parallelism.
2022-01-10 21:06:02 +13:00
Terry MacDonald
40dd80f8b0 Revert DesktopNotificationManagerCompat changes 2022-01-10 19:53:13 +13:00
Terry MacDonald
312d056705 Fixed non-working Windows Toast notifications
Also cleaned up some old unused IPCService/Client code.
2022-01-10 09:27:34 +13:00
Terry MacDonald
81f34c3b9c Fix Invoke blocking the game starting
Moved it to a non-blocking BeginInvoke thread as it doesn't matter when it ends, and that way we keep the application running.
2022-01-09 20:06:46 +13:00
Terry MacDonald
475dcaddc9 Fixed bug with disabling broken shortcuts
We weren't disabling the invalid Game Shortcuts from the right-click system tray menu, even though they couldn't be used. Fixed that.
2022-01-08 20:31:10 +13:00
Terry MacDonald
8b7b5f2e75 Updated version to 2.2.0.1 2022-01-08 10:44:54 +13:00
Terry MacDonald
fffe1a8bf1 Updated explorer install restart and added log rolling
Updated the installer so that windows update is only forced to restart if it needs to be.

Added log rolling to DisplayMagician so that it keeps the last 4 log files as well as the one currently in use. Also updated the support ZIP file creation logic to include those extra log files so I can see exactly what's been going on, as well as added in the DisplayProfiles_2.0.json as well which I'd missed previously.
2022-01-08 10:32:54 +13:00