mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Enable cloud-online menu entry only if connected to cloud
Enable the menu item cloud-online only if the current file is the cloud storage. Since this has to be checked every time the current file is set, factor this out into the new MainWindow::setCurrentFile() function. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
bb64c6bda8
commit
b3901aa8f9
2 changed files with 23 additions and 14 deletions
|
@ -198,6 +198,8 @@ private:
|
|||
bool askSaveChanges();
|
||||
bool okToClose(QString message);
|
||||
void closeCurrentFile();
|
||||
void setCurrentFile(const char *f);
|
||||
void updateCloudOnlineStatus();
|
||||
void showProgressBar();
|
||||
void hideProgressBar();
|
||||
void writeSettings();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue