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

Streamer mode button shows on restart even though it's disabled #4682

Closed
4 tasks done
sando opened this issue Jun 11, 2023 · 2 comments · Fixed by #4690
Closed
4 tasks done

Streamer mode button shows on restart even though it's disabled #4682

sando opened this issue Jun 11, 2023 · 2 comments · Fixed by #4690
Labels
bug Something isn't working as intended, or works in a confusing/unintuitive way for the user Feature: Settings Issues related to settings and window layouts

Comments

@sando
Copy link
Contributor

sando commented Jun 11, 2023

Checklist

  • I'm reporting a problem with Chatterino
  • I've verified that I'm running the most recent nightly build or stable release
  • I've looked for my problem on the wiki
  • I've searched the issues and pull requests for similar looking reports

Describe your issue

If streamer mode is set to disabled, the title bar button is still shown at startup.

chatterino_niMnXaoJoN

The button will disappear if you change from disabled -> auto -> disabled, but when Chatterino is restarted, it'll appear again.

If set to auto and restarted, it behaves as expected (although it does appear briefly while Chatterino is starting).

Screenshots

No response

OS and Chatterino Version

Chatterino Nightly 2.4.4 (commit a045d3e) built on 2023-06-11 with Qt 6.5.0, Windows SDK, MSVC 193532217, Crashpad Running on Windows 11 Version 23H2, kernel: 10.0.25381

@sando sando added the issue-report An issue reported by a user. label Jun 11, 2023
@Felanbird Felanbird added bug Something isn't working as intended, or works in a confusing/unintuitive way for the user Feature: Settings Issues related to settings and window layouts and removed issue-report An issue reported by a user. labels Jun 11, 2023
@Felanbird
Copy link
Collaborator

I saw this at some point while testing some other PR, I don't specifically remember screwing with that setting but I can also replicate said fact from this report.

It's also possibly a windows only issue since I visually confirmed the icon wasn't there but didn't confirm by scrolling my mouse over the area, when reviewing the PR.

@Nerixyz
Copy link
Contributor

Nerixyz commented Jun 12, 2023

Can reproduce on Windows as well. Seems like streamerModeChanged isn't invoked after the window is created, causing Window::updateStreamerModeIcon to never be called.
Calling updateStreamerModeIcon after the button is created works for me.

diff --git a/src/widgets/Window.cpp b/src/widgets/Window.cpp
index d3687281..f4a99184 100644
--- a/src/widgets/Window.cpp
+++ b/src/widgets/Window.cpp
@@ -194,6 +194,7 @@ void Window::addCustomTitlebarButtons()
             getApp()->windows->showSettingsDialog(
                 this, SettingsDialogPreference::StreamerMode);
         });
+    this->updateStreamerModeIcon();
     this->signalHolder_.managedConnect(getApp()->streamerModeChanged, [this]() {
         this->updateStreamerModeIcon();
     });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working as intended, or works in a confusing/unintuitive way for the user Feature: Settings Issues related to settings and window layouts
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants