MCPcopy Create free account
hub / github.com/Windscribe/Desktop-App / setSource

Method setSource

src/client/frontend/gui/generalmessagecontroller.cpp:249–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247}
248
249void GeneralMessageController::setSource(MainWindowController::WINDOW_ID source)
250{
251 messages_.last()->source = source;
252 // If original message was from preferences, but we are changing the source, remove the flag so it does not try to open preferences from the new source
253 if (messages_.last()->flags & GeneralMessage::kFromPreferences) {
254 messages_.last()->flags = static_cast<GeneralMessage::Flags>(static_cast<int>(messages_.last()->flags) & ~static_cast<int>(GeneralMessage::kFromPreferences));
255 }
256}

Callers 4

gotoLoginWindowMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected