From 35dd1b000079435cec6b4a8016a22f45556b1675 Mon Sep 17 00:00:00 2001 From: Olaf Wintermann Date: Thu, 7 Aug 2025 21:48:36 +0200 Subject: [PATCH] implement -s (single instance) arg --- application/main.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/application/main.c b/application/main.c index 458fed0..8372474 100644 --- a/application/main.c +++ b/application/main.c @@ -213,6 +213,12 @@ int main(int argc, char** argv) { PlayListSetMode(window, playback); } + if(single_instance) { + // this will trigger the Single Instance menu button event handler + // and enable the single instance mode if possible + XmToggleButtonGadgetSetState(window->prefSingleInstanceButton, True, True); + } + WindowShow(window); AppMainLoop(app); -- 2.47.3