-
-
Notifications
You must be signed in to change notification settings - Fork 470
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
fix: special shortcut for Windows live notifications #5975
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
@Nerixyz there might be a bug with pinning c2 to the taskbar. Steps
-> Tested the Taskbar shortcut, and it don't include the AUMI Questions: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can just change all AUMI/AppNames to "Chatterino", feel free to do that in this PR - I'm assuming that should not break anything. Rather that be changed now than before we start creating shortcuts
settings.append(this->createCheckBox( | ||
"Create start menu shortcut (requires " | ||
"restart)", | ||
getSettings()->createShortcutForToasts, | ||
"When enabled, a shortcut will be created inside your " | ||
"start menu folder if needed by live notifications." | ||
"\n(On portable mode, this is disabled by " | ||
"default)")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use SettingWidget
here, which means you wouldn't have to update the createCheckBox
implementation - see
chatterino2/src/widgets/settingspages/GeneralPage.cpp
Lines 1231 to 1235 in 7fee3f7
SettingWidget::dropdown("Show blocked term automod messages", | |
s.showBlockedTermAutomodMessages) | |
->setTooltip("Show messages that are blocked by AutoMod for containing " | |
"a public blocked term in the current channel.") | |
->addTo(layout); |
@@ -526,6 +527,9 @@ class Settings | |||
"/notifications/suppressInitialLive", false}; | |||
|
|||
BoolSetting notificationToast = {"/notifications/enableToast", false}; | |||
BoolSetting createShortcutForToasts = { | |||
"/notifications/createShortcutForToasts", | |||
Modes::instance().isPortable ? false : true}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add a , at the end of the ternary, that way it formats a bit nicer, causing nicer diffs in the future if we have to edit it
Fixes #5954