From: Olaf Wintermann Date: Thu, 7 Aug 2025 19:48:36 +0000 (+0200) Subject: implement -s (single instance) arg X-Git-Url: https://uap-core.de/gitweb/?a=commitdiff_plain;h=35dd1b000079435cec6b4a8016a22f45556b1675;p=uwplayer.git implement -s (single instance) arg --- 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);