Fix Notes Conditions (#5847)
* Fix conditions for personal notes being displayed and the notes display type option being disabled. * clang
This commit is contained in:
@@ -1595,10 +1595,7 @@ void ItemTrackerWindow::DrawElement() {
|
|||||||
DrawItemsInRows(mainWindowItems, 6);
|
DrawItemsInRows(mainWindowItems, 6);
|
||||||
|
|
||||||
if (CVarGetInteger(CVAR_TRACKER_ITEM("DisplayType.Notes"), SECTION_DISPLAY_HIDDEN) ==
|
if (CVarGetInteger(CVAR_TRACKER_ITEM("DisplayType.Notes"), SECTION_DISPLAY_HIDDEN) ==
|
||||||
SECTION_DISPLAY_MAIN_WINDOW &&
|
SECTION_DISPLAY_MAIN_WINDOW) {
|
||||||
(CVarGetInteger(CVAR_TRACKER_ITEM("WindowType"), TRACKER_WINDOW_FLOATING) == TRACKER_WINDOW_FLOATING &&
|
|
||||||
CVarGetInteger(CVAR_TRACKER_ITEM("DisplayType.Main"), TRACKER_DISPLAY_ALWAYS) ==
|
|
||||||
TRACKER_DISPLAY_ALWAYS)) {
|
|
||||||
DrawNotes();
|
DrawNotes();
|
||||||
}
|
}
|
||||||
EndFloatingWindows();
|
EndFloatingWindows();
|
||||||
@@ -2104,10 +2101,9 @@ void RegisterItemTrackerWidgets() {
|
|||||||
.Color(THEME_COLOR)
|
.Color(THEME_COLOR)
|
||||||
.ComboMap(displayTypes))
|
.ComboMap(displayTypes))
|
||||||
.PreFunc([&](WidgetInfo& info) {
|
.PreFunc([&](WidgetInfo& info) {
|
||||||
if (CVarGetInteger(CVAR_TRACKER_ITEM("WindowType"), TRACKER_WINDOW_FLOATING) == TRACKER_WINDOW_WINDOW ||
|
if (CVarGetInteger(CVAR_TRACKER_ITEM("WindowType"), TRACKER_WINDOW_FLOATING) == TRACKER_WINDOW_FLOATING &&
|
||||||
(CVarGetInteger(CVAR_TRACKER_ITEM("WindowType"), TRACKER_WINDOW_FLOATING) == TRACKER_WINDOW_FLOATING &&
|
CVarGetInteger(CVAR_TRACKER_ITEM("DisplayType.Main"), TRACKER_DISPLAY_ALWAYS) ==
|
||||||
CVarGetInteger(CVAR_TRACKER_ITEM("DisplayType.Main"), TRACKER_DISPLAY_ALWAYS) !=
|
TRACKER_DISPLAY_COMBO_BUTTON) {
|
||||||
TRACKER_DISPLAY_COMBO_BUTTON)) {
|
|
||||||
info.options.get()->disabled = true;
|
info.options.get()->disabled = true;
|
||||||
info.options.get()->disabledTooltip = notesDisabledTooltip;
|
info.options.get()->disabledTooltip = notesDisabledTooltip;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user