From 85bd02f08f5ee3a6ea2cec8b3af1a5ea9e23c46a Mon Sep 17 00:00:00 2001 From: Nippy Date: Fri, 25 Sep 2026 16:49:38 +0200 Subject: update szep.25 calamares finish --- raveos-calamares/0003-restart-button.patch | 58 ++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 raveos-calamares/0003-restart-button.patch (limited to 'raveos-calamares/0003-restart-button.patch') diff --git a/raveos-calamares/0003-restart-button.patch b/raveos-calamares/0003-restart-button.patch new file mode 100644 index 0000000..a06ea52 --- /dev/null +++ b/raveos-calamares/0003-restart-button.patch @@ -0,0 +1,58 @@ +--- a/src/calamares/CalamaresWindow.cpp ++++ b/src/calamares/CalamaresWindow.cpp +@@ -35,6 +35,9 @@ + #include + #include + #include ++#include ++#include ++#include + #ifdef WITH_QML + #include + #include +@@ -216,6 +219,36 @@ + { + QWidget* navigation = new QWidget( parent ); + QBoxLayout* bottomLayout = new QHBoxLayout; ++ ++ // RaveOS: globalis ujrainditas gomb a bal also sarokban (minden oldalon lathato) ++ { ++ auto* restart = new QPushButton( ++ getButtonIcon( QStringLiteral( "view-refresh" ) ), ++ QCoreApplication::translate( CalamaresWindow::staticMetaObject.className(), "&Restart", "@button" ), ++ navigation ); ++ restart->setObjectName( "restartButton" ); ++ restart->setToolTip( QCoreApplication::translate( CalamaresWindow::staticMetaObject.className(), ++ "Restart the computer", ++ "@tooltip" ) ); ++ QObject::connect( restart, ++ &QPushButton::clicked, ++ navigation, ++ []() ++ { ++ if ( QMessageBox::question( nullptr, ++ QStringLiteral( "RaveOS" ), ++ QCoreApplication::translate( "calamares-sidebar", ++ "Restart the computer?", ++ "@info" ) ) ++ == QMessageBox::Yes ) ++ { ++ QProcess::startDetached( QStringLiteral( "systemctl" ), ++ { QStringLiteral( "-i" ), QStringLiteral( "reboot" ) } ); ++ } ++ } ); ++ bottomLayout->addWidget( restart ); ++ } ++ + bottomLayout->addStretch(); + + // Create buttons and sets an initial icon; the icons may change +@@ -272,7 +305,7 @@ + bottomLayout->addWidget( quit ); + } + +- bottomLayout->setContentsMargins( 0, 0, 6, 6 ); ++ bottomLayout->setContentsMargins( 6, 0, 6, 6 ); + navigation->setLayout( bottomLayout ); + return navigation; + } -- cgit v1.3