mirror of
https://github.com/itay-grudev/SingleApplication.git
synced 2025-01-15 17:02:06 +08:00
Bug Fix Calculator example not raising it's window on Windows
This commit is contained in:
parent
4841681918
commit
8892a54e12
@ -60,12 +60,10 @@ int main(int argc, char *argv[])
|
||||
|
||||
Calculator calc;
|
||||
|
||||
QObject::connect(
|
||||
&app,
|
||||
&SingleApplication::instanceStarted,
|
||||
&calc,
|
||||
&Calculator::raise
|
||||
);
|
||||
QObject::connect( &app, &SingleApplication::instanceStarted, [ &calc ]() {
|
||||
calc.raise();
|
||||
calc.activateWindow();
|
||||
});
|
||||
|
||||
calc.show();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user