Skip to content

Commit

Permalink
change the size of tray
Browse files Browse the repository at this point in the history
  • Loading branch information
pit-ray committed Feb 13, 2024
1 parent e054605 commit 0a50249
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/core/version.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#ifndef _VERSION_HPP
#define _VERSION_HPP

#define WIN_VIND_VERSION "5.10.0.0"
#define WIN_VIND_VERSION "5.11.0.0"

#endif
12 changes: 9 additions & 3 deletions src/gui/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,22 +127,24 @@ int WINAPI WinMain(
"win-vind", WIN_VIND_VERSION, argparse::default_arguments::none) ;

parser.add_argument("-h", "--help")
.action([&parser] (const auto&) {
.action([&parser, &runnable] (const auto&) {
if(create_console()) {
std::cout << parser ;
system("PAUSE") ;
}
runnable.store(false) ;
})
.default_value(false)
.help("Shows help message and exits.")
.implicit_value(true)
.nargs(0) ;
parser.add_argument("-v", "--version")
.action([&parser] (const auto&) {
.action([&parser, &runnable] (const auto&) {
if(create_console()) {
std::cout << WIN_VIND_VERSION << std::endl ;
system("PAUSE") ;
}
runnable.store(false) ;
})
.default_value(false)
.help("Prints version information and exits.")
Expand All @@ -155,6 +157,10 @@ int WINAPI WinMain(

parser.parse_args(args) ;

if(!runnable.load()) {
return 0 ;
}

auto exit_process = [&runnable] {
runnable = false ;
return false ;
Expand Down Expand Up @@ -187,7 +193,7 @@ int WINAPI WinMain(
if(!tray.create_tray(
"win-vind",
(core::RESOURCE_ROOT_PATH() / "icons" / icon_path).u8string(),
5, 5, 10, 5, 240, true)) {
5, 5, 10, 10, 240, true)) {
PRINT_ERROR("Failed tray initialization") ;
return 1 ;
}
Expand Down

0 comments on commit 0a50249

Please sign in to comment.