Skip to content

Commit

Permalink
Added debug logging when changing tab
Browse files Browse the repository at this point in the history
  • Loading branch information
Aemony committed Apr 18, 2024
1 parent c16e123 commit 82f92fc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/SKIF.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2558,6 +2558,8 @@ wWinMain ( _In_ HINSTANCE hInstance,
// Reset the dimmed cover when going back to the tab
if (_registry.iDimCovers == 2)
fTint = 0.75f;

PLOG_DEBUG << "Switches to tab: Library";
}

// Ensure we have set up the drop target on the Library tab
Expand Down Expand Up @@ -2585,6 +2587,9 @@ wWinMain ( _In_ HINSTANCE hInstance,
{
SKIF_ImGui_BeginTabChildFrame ();

if (SKIF_Tab_Selected != UITab_Monitor)
PLOG_DEBUG << "Switches to tab: Monitor";

extern void
SKIF_UI_Tab_DrawMonitor (void);
SKIF_UI_Tab_DrawMonitor ( );
Expand All @@ -2604,6 +2609,9 @@ wWinMain ( _In_ HINSTANCE hInstance,
{
SKIF_ImGui_BeginTabChildFrame ();

if (SKIF_Tab_Selected != UITab_Settings)
PLOG_DEBUG << "Switches to tab: Settings";

SKIF_UI_Tab_DrawSettings( );

// Engages auto-scroll mode (left click drag on touch + middle click drag on non-touch)
Expand All @@ -2617,6 +2625,9 @@ wWinMain ( _In_ HINSTANCE hInstance,
{
SKIF_ImGui_BeginTabChildFrame ();

if (SKIF_Tab_Selected != UITab_About)
PLOG_DEBUG << "Switches to tab: About";

SKIF_Tab_Selected = UITab_About;
if (SKIF_Tab_ChangeTo == UITab_About)
SKIF_Tab_ChangeTo = UITab_None;
Expand Down

0 comments on commit 82f92fc

Please sign in to comment.