Skip to content

Storing advanced settings and some clean-up#26

Merged
Mr-Technician merged 7 commits intoMr-Technician:develop-1.0from
Faboor:develop
Jan 8, 2022
Merged

Storing advanced settings and some clean-up#26
Mr-Technician merged 7 commits intoMr-Technician:develop-1.0from
Faboor:develop

Conversation

@Faboor
Copy link
Copy Markdown
Contributor

@Faboor Faboor commented Jan 4, 2022

Summary of changes:

  • Form elements now have a proper name e.g. goBorderlessButton instead of button1
  • Advanced check-box state and x/y position/size textboxes are stored in registry like other settings
  • When borderless is triggered automatically, it will use parameters from advanced settings
  • Replaced unused "Settings" button from tray context menu with "Show Borderless Minecraft" that re-opens the app window
  • Refreshing the list when "Show all clients" is changed
  • Moving event handlers assignment for settings to the Designer.cs, same as already used for buttons

Faboor added 7 commits January 5, 2022 19:04
This commit stores the value of the advanced checkbox and text boxes in
the registry similarly to other settings. It insures that on the next
startup, the values will be persisted and users will not have to
re-enter their desired Advanced mode values on every single app start.
Going forward, bumping up version will require a change to the
`AssemblyInfo.cs` file, but it won't require changing the form/window
title, as that is derived from the version there. For people trying to
check the code, it will be more obvious where to look for the current
version, as previously this was only exposed as the hardcoded form
title.
After moving the handles to the designer / `InitializeComponent`, we
need to ensure, that anything needed by the setting changed handlers is
initialized too before loading and setting the checked states.

For now this only applies to AutoBorderless - after setting Checked to
true, it tries to start the process monitor, so `ProcessMonitor` must be
initialized before that.
When minimized to tray, the right click context menu has an used
Settings item. This removes it and instead adds a "Show Bordeless
Minecraft" item that re-opens the main window
There is an used `checkBox3_CheckedChanged` method that refreshes the
process list. I'm assuming the checkbox was similar to current "Show All
Clients" settings. This removes the unused method and adds refreshing the list
to the "Show All Clients" handler.
Previously auto borderless would always use default parameters for
window position/size. This changes the behaviour to use the advanced
mode parameters, if enabled.
@Mr-Technician Mr-Technician merged commit 571f6cc into Mr-Technician:develop-1.0 Jan 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants