Skip to content

Commit

Permalink
Add dummy UI button
Browse files Browse the repository at this point in the history
  • Loading branch information
iTrooz committed Nov 17, 2024
1 parent 48235f5 commit fac521a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions launcher/ui/pages/instance/ServersPage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -734,4 +734,9 @@ void ServersPage::on_actionJoin_triggered()
APPLICATION->launch(m_inst, true, false, std::make_shared<MinecraftTarget>(MinecraftTarget::parse(address, false)));
}

void ServersPage::on_actionRefresh_triggered()
{
qDebug() << "Action clicked";
}

#include "ServersPage.moc"
1 change: 1 addition & 0 deletions launcher/ui/pages/instance/ServersPage.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ class ServersPage : public QMainWindow, public BasePage {
void on_actionMove_Up_triggered();
void on_actionMove_Down_triggered();
void on_actionJoin_triggered();
void on_actionRefresh_triggered();

void runningStateChanged(bool running);

Expand Down
7 changes: 7 additions & 0 deletions launcher/ui/pages/instance/ServersPage.ui
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@
<addaction name="actionMove_Up"/>
<addaction name="actionMove_Down"/>
<addaction name="actionJoin"/>
<addaction name="separator"/>
<addaction name="actionRefresh"/>
</widget>
<action name="actionAdd">
<property name="text">
Expand All @@ -175,6 +177,11 @@
<string>Join</string>
</property>
</action>
<action name="actionRefresh">
<property name="text">
<string>Refresh</string>
</property>
</action>
</widget>
<customwidgets>
<customwidget>
Expand Down

0 comments on commit fac521a

Please sign in to comment.