mirror of
https://github.com/Quill-OS/quill.git
synced 2024-12-26 07:37:21 -08:00
apps.cpp: Change editUserAppsBtn icon while in 'Edit' mode
This commit is contained in:
parent
e8010300c7
commit
9e7edc8d53
4 changed files with 5 additions and 2 deletions
4
apps.cpp
4
apps.cpp
|
@ -305,6 +305,7 @@ void apps::on_editUserAppsBtn_clicked()
|
|||
userAppsSecondPage = true;
|
||||
|
||||
// Settings page
|
||||
ui->editUserAppsBtn->setIcon(QIcon(":/resources/save.png"));
|
||||
showUserApps(userAppsSecondPage);
|
||||
emit showUserAppsEdit(userAppsSecondPage);
|
||||
|
||||
|
@ -313,8 +314,9 @@ void apps::on_editUserAppsBtn_clicked()
|
|||
else {
|
||||
userAppsSecondPage = false;
|
||||
userAppsAvailable = false;
|
||||
// Launch page
|
||||
|
||||
// Launch page
|
||||
ui->editUserAppsBtn->setIcon(QIcon(":/resources/edit.png"));
|
||||
// It changed via updateJsonFileSlot, and now it writes it only once
|
||||
jsonFile.open(QFile::WriteOnly | QFile::Text | QFile::Truncate);
|
||||
jsonFile.write(jsonDocument.toJson());
|
||||
|
|
1
eink.qrc
1
eink.qrc
|
@ -75,5 +75,6 @@
|
|||
<file>resources/eink-square-encfs.qss</file>
|
||||
<file>resources/tzlist</file>
|
||||
<file>resources/edit.png</file>
|
||||
<file>resources/save.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 1.7 KiB |
BIN
resources/save.png
Normal file
BIN
resources/save.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.4 KiB |
Loading…
Reference in a new issue