Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There are two problems that are inconvenient to use. #8

Closed
Lioreas opened this issue Jun 10, 2022 · 6 comments
Closed

There are two problems that are inconvenient to use. #8

Lioreas opened this issue Jun 10, 2022 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@Lioreas
Copy link

Lioreas commented Jun 10, 2022

The first is that when i turn on Enable autostart, the volume is turned off for programs that i didn't leave as mute exception before double-clicking on the tray.(Working after double-clicking on the tray)

Second, after changing the program, the "Setting changed" window appears every time i turn off the program even though i press Save changes. (If there is no change, it does not appear.)
This causes problems that i have to press the shutdown button each time you turn off the computer, ignore the program's warning, or press the Cancel button, press yes for this program, and then turn it off again.

@nefares nefares self-assigned this Jun 20, 2022
@nefares nefares added the bug Something isn't working label Jun 20, 2022
@nefares
Copy link
Owner

nefares commented Jun 20, 2022

Thanks for the report.

Regarding the second point I have provided a fix in the latest release 1.0.5: https://github.com/nefares/Background-Muter/releases/tag/v1.0.5

Regarding the first point: I'm not able to replicate this. Could you give me the steps to re-create the issue? Enabling autostart should have no effect on the Mute/Unmute functionality.

@Lioreas Lioreas closed this as completed Jun 22, 2022
@Lioreas Lioreas reopened this Jun 22, 2022
@Lioreas
Copy link
Author

Lioreas commented Jun 22, 2022

I guess the syntax of Background Muter.lnk in the startup program -- startMinimized works differently for each computer. In my case, programs that are not handled as exceptions in the GUI will remain muted until I run the GUI in the tray.

I guess --startMinimized is making the execution weird.

@lamrongol
Copy link
Contributor

I guess --startMinimized is making the execution weird.

I think so, too. I found BG Muter doesn't work when booted by "Autostart", which has --startMinimized option. It starts to work when clicking the tray icon and the form is displayed.

I confirmed RunMuter() is not fired when booted with --startMinimized option and RunMuter() is executed by MuterCallback() which is excecuted by MuterTimer_Tick, and the following post says tick is affected when the form is minimized:
https://stackoverflow.com/q/2166773/3809427

However, once the form is displayed, even if it retuns to tray icon, it works continually.
I can't understand this phenomenon any more.

@lamrongol
Copy link
Contributor

I found a released binary file's form title is
image

However, I pulled the newest source code(I confirmed that it is not different from released source code) and compiled and run, Title of the form is:
image

This difference originate from WinBGMuter.dll which is l.509~516 of MainForm.cs.
I don't know what it mean but this may cause the problem in different environments.

@nefares
Copy link
Owner

nefares commented Aug 22, 2024

@Lioreas This is definitly a bug. The original code prevents the MainForm_Load from executing, causing the muter to never actually initialize. @lamrongol I have merged your code into the master branch with some small changes (the minimizing code is now under the Shown event of the MainForm

Lastest release is under: https://github.com/nefares/Background-Muter/releases/tag/v1.0.10

@nefares nefares closed this as completed Aug 22, 2024
@nefares
Copy link
Owner

nefares commented Aug 22, 2024

I found a released binary file's form title is image

However, I pulled the newest source code(I confirmed that it is not different from released source code) and compiled and run, Title of the form is: image

This difference originate from WinBGMuter.dll which is l.509~516 of MainForm.cs. I don't know what it mean but this may cause the problem in different environments.

This behavior is caused by the build process. When building locally, the app will include a genetic version with the latest commit. When building using Github Actions CI/CD, it will automatically take the latest release number and show it in Background muter. Feel free to read the github actions file here: https://github.com/nefares/Background-Muter/blob/master/.github/workflows/tagged-release.yml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants