Skip to content

Commit

Permalink
build(deps): remove traypp
Browse files Browse the repository at this point in the history
BREAKING CHANGE: completely delete `SystemTray`
  • Loading branch information
Serein207 committed Aug 7, 2024
1 parent f2e9ed8 commit df1b3c4
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 51 deletions.
2 changes: 0 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ endif()
add_subdirectory(src)
# sast-link-sdk
add_subdirectory(3rdpart/sast-link-cxx-sdk)
# traypp
add_subdirectory(3rdpart/traypp EXCLUDE_FROM_ALL)

# credential storage
set(BUILD_SHARED_LIBS OFF)
Expand Down
1 change: 0 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ target_link_libraries(${PROJECT_NAME}
keychain
Slint::Slint
version::version
tray
)

# On Windows, copy the Slint DLL next to the application binary so that it's found.
Expand Down
44 changes: 0 additions & 44 deletions src/Infrastructure/Tray/SystemTray.h

This file was deleted.

5 changes: 1 addition & 4 deletions src/main.cc
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include <Infrastructure/Network/network.h>
#include <Infrastructure/Tray/SystemTray.h>
#include <Infrastructure/Utils/Config.h>
#include <Infrastructure/Utils/Logger.h>
#include <Version.h>
Expand All @@ -17,8 +16,6 @@ int main(int argc, char** argv) {
auto uiEntry = App::create();
uiEntry->global<LoginOverlayBridge>().on_link_login(start_sast_link);
uiEntry->global<LoginOverlayBridge>().set_version("v" VERSION_FULL);
uiEntry->show();
evento::SystemTray tray(uiEntry);
slint::run_event_loop(slint::EventLoopMode::RunUntilQuit);
uiEntry->run();
evento::saveConfig();
}

0 comments on commit df1b3c4

Please sign in to comment.