-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add runFcitx5 button #25
Conversation
update fork
update fork
@@ -41,6 +44,11 @@ void ErrorOverlay::availabilityChanged(bool avail) { | |||
} | |||
} | |||
|
|||
void ErrorOverlay::runFcitx5() | |||
{ | |||
system("fcitx5-autostart"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Just run fcitx5.
- don't use system().
See how FcitxModule::runFcitx() implement it.
@@ -25,6 +26,8 @@ ErrorOverlay::ErrorOverlay(DBusProvider *dbus, QWidget *parent) | |||
connect(baseWidget_, &QObject::destroyed, this, &QObject::deleteLater); | |||
connect(dbus, &DBusProvider::availabilityChanged, this, | |||
&ErrorOverlay::availabilityChanged); | |||
|
|||
connect(ui_->pushButton,&QAbstractButton::pressed,this,&ErrorOverlay::runFcitx5); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code is not properly formatted, please run clang-format.
</widget> | ||
</item> | ||
<item> | ||
<widget class="QPushButton" name="pushButton"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe we can have a more descriptive name for this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i close it ,when i changed right , i pr this ?
add runFcitx5 button