Skip to content

Commit ccf062c

Browse files
committed
Move & tweak how/where SetIcon gets called (very occasionally I'll have the icon seemingly not get set, IDK for certain if this change makes any difference since its kinda random for me)
1 parent 46a3dc5 commit ccf062c

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

src/app.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,6 @@ bool Launcher::App::OnInit() {
142142
_mainFrame = CreateMainWindow();
143143
_mainFrame->EnableInterface(false);
144144

145-
wxIcon icon;
146-
icon.CopyFromBitmap(wxBitmap(wxICON(IDI_ICON1)));
147-
_mainFrame->SetIcon(icon);
148-
149145
if (sCLI->CheckSelfUpdate()) {
150146
Logger::Info("Self-update startup check requested...\n");
151147
HandleSelfUpdate(_mainFrame, sCLI->UnstableLauncher(), true);

src/windows/launcher.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ namespace Launcher {
148148
SetSizerAndFit(_verticalSizer);
149149

150150
SetBackgroundColour(wxColour(237, 237, 237));
151+
SetIcon(wxICON(IDI_ICON1));
151152
CenterOnScreen();
152153
}
153154

0 commit comments

Comments
 (0)