Skip to content

Commit

Permalink
Removed various SKIF features and settings that don't apply to SKIV
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaldaien committed Sep 3, 2024
1 parent f0e6006 commit 176da90
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/tabs/common_ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ void SKIF_UI_DrawComponentVersion (void)

ImGui::EndGroup ( );

#ifdef HAS_AUTO_UPDATE
ImGui::BeginGroup ( );
ImGui::Spacing ( );
ImGui::SameLine ( );
Expand Down Expand Up @@ -77,6 +78,7 @@ void SKIF_UI_DrawComponentVersion (void)
UpdatePromptPopup = PopupState_Open;
ImGui::PopStyleColor ( );
}
#endif
}

void SKIF_UI_DrawPlatformStatus (void)
Expand Down
13 changes: 9 additions & 4 deletions src/tabs/settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,8 @@ SKIF_UI_Tab_DrawSettings (void)

constexpr char* StyleItems[UIStyle_COUNT] =
{ "Dynamic",
"SKIF Dark",
"SKIF Light",
"SKIV Dark",
"SKIV Light",
"ImGui Classic",
"ImGui Dark"
};
Expand Down Expand Up @@ -693,8 +693,10 @@ SKIF_UI_Tab_DrawSettings (void)
if ( ImGui::Checkbox ( "Always open this app on the same monitor as the mouse", &_registry.bOpenAtCursorPosition ) )
_registry.regKVOpenAtCursorPosition.putData ( _registry.bOpenAtCursorPosition );

#ifdef HAS_AUTO_UPDATE
if ( ImGui::Checkbox ( "Automatically install new updates", &_registry.bAutoUpdate ) )
_registry.regKVAutoUpdate.putData ( _registry.bAutoUpdate);
#endif

#if 0
if ( ImGui::Checkbox ( "Controller support", &_registry.bControllers ) )
Expand All @@ -720,6 +722,7 @@ SKIF_UI_Tab_DrawSettings (void)

#pragma region Advanced::CheckForUpdates

#ifdef HAS_AUTO_UPDATE
ImGui::TextColored (ImGui::GetStyleColorVec4(ImGuiCol_SKIF_Info), ICON_FA_LIGHTBULB);
SKIF_ImGui_SetHoverTip ("This setting has no effect if low bandwidth mode is enabled.");
ImGui::SameLine ( );
Expand Down Expand Up @@ -841,8 +844,8 @@ SKIF_UI_Tab_DrawSettings (void)
}

ImGui::EndGroup ( );

ImGui::TreePop ( );
#endif

#pragma endregion

Expand Down Expand Up @@ -905,7 +908,7 @@ SKIF_UI_Tab_DrawSettings (void)
}
}

SKIF_ImGui_SetHoverTip ("Only intended for SKIF developers as this enables excessive logging (e.g. window messages).");
SKIF_ImGui_SetHoverTip ("Only intended for SKIV developers as this enables excessive logging (e.g. window messages).");

SKIF_ImGui_Spacing ( );

Expand Down Expand Up @@ -977,6 +980,7 @@ SKIF_UI_Tab_DrawSettings (void)
#endif
);

#if 0
static std::wstring wsDisableCall = SK_FormatStringW (
LR"("%ws\%ws",RunDLL_DisableGFEForSKIF)",
_path_cache.specialk_userdata, // Can theoretically be wrong
Expand Down Expand Up @@ -1047,6 +1051,7 @@ SKIF_UI_Tab_DrawSettings (void)
SKIF_ImGui_SetHoverTip ("This only needs to be used if GeForce Experience notifications\n"
"appear on the screen whenever this app is being used.");
}
#endif

ImGui::TreePop ( );

Expand Down

0 comments on commit 176da90

Please sign in to comment.