A simple, small calculator placed discreetly near the Windows Taskbar or anywhere on the screen
0

Configure Feed

Select the types of activity you want to include in your feed.

feat: remember window visibility across launches (first run: visible)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

authored by

Marco Maroni
Claude Fable 5
and committed by
Tangled
(Jul 15, 2026, 1:16 PM +0300) e68ef06e 96a2b318

+5
+3
App.cpp
··· 4 4 #include "TrayIcon.h" 5 5 #include "StartupManager.h" 6 6 #include "CalculatorWindow.h" 7 + #include "Settings.h" 7 8 #include "resource.h" 8 9 9 10 enum { IDM_SHOWHIDE = 1, IDM_STARTUP = 2, IDM_ABOUT = 3, IDM_EXIT = 4 }; ··· 92 93 93 94 g_calc = new CCalculatorWindow(); 94 95 g_calc->CreateStandalone(); 96 + if (Settings::LoadVisible(true)) // first run (no saved value): visible 97 + g_calc->ToggleVisible(); 95 98 96 99 MSG m; 97 100 while (GetMessage(&m, nullptr, 0, 0)) {
+2
CalculatorWindow.cpp
··· 194 194 ::SetFocus(m_hwndEdit); 195 195 m_shown = true; 196 196 } 197 + Settings::SaveVisible(m_shown); 197 198 } 198 199 199 200 POINTL CCalculatorWindow::CalcMinimalSize() const ··· 349 350 // Hide to tray instead of destroying. 350 351 ShowWindow(SW_HIDE); 351 352 m_shown = false; 353 + Settings::SaveVisible(false); 352 354 return 0; 353 355 } 354 356