mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
move netfs-mounts from ni-menu to network-setup
Origin commit data
------------------
Branch: ni/coolstream
Commit: 6c20bc42f8
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-09-12 (Tue, 12 Sep 2017)
Origin message was:
------------------
- move netfs-mounts from ni-menu to network-setup
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -46,6 +46,7 @@
|
||||
#include <gui/widget/msgbox.h>
|
||||
|
||||
#include <gui/network_service.h>
|
||||
#include <gui/netfs_setup.h>
|
||||
|
||||
#include <sys/socket.h>
|
||||
#include <netinet/in.h>
|
||||
@@ -442,6 +443,20 @@ void CNetworkSetup::showNetworkNFSMounts(CMenuWidget *menu_nfs)
|
||||
mf = new CMenuDForwarder(LOCALE_NFS_UMOUNT, true, NULL, new CNFSUmountGui(), NULL, CRCInput::RC_green);
|
||||
mf->setHint("", LOCALE_MENU_HINT_NET_NFS_UMOUNT);
|
||||
menu_nfs->addItem(mf);
|
||||
|
||||
menu_nfs->addItem(GenericMenuSeparatorLine);
|
||||
|
||||
CNETFSMountGui *netfsMountGui = new CNETFSMountGui();
|
||||
const char *used_fstab = netfsMountGui->fstabPath.c_str();
|
||||
const char *used_autonet = netfsMountGui->autoPath.c_str();
|
||||
|
||||
CMenuForwarder *fstab = new CMenuForwarder(LOCALE_NETFS_FSTAB_EDIT, true, used_fstab, netfsMountGui, "menu fstab", CRCInput::RC_yellow);
|
||||
fstab->setHint(NEUTRINO_ICON_HINT_IMAGELOGO, LOCALE_MENU_HINT_NETFS_MENU_MAIN_FSTAB);
|
||||
menu_nfs->addItem(fstab);
|
||||
|
||||
CMenuForwarder *automount = new CMenuForwarder(LOCALE_NETFS_AUTOMOUNT_EDIT, true, used_autonet, netfsMountGui, "menu automount", CRCInput::RC_blue);
|
||||
automount->setHint(NEUTRINO_ICON_HINT_IMAGELOGO, LOCALE_MENU_HINT_NETFS_MENU_MAIN_AUTOMOUNT);
|
||||
menu_nfs->addItem(automount);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user