font();
+ f.setBold(i == 0);
+ a->setFont(f);
+ }
+ }
+ }
+
menu.exec(ui->filetree->viewport()->mapToGlobal(pos));
}
--
cgit v1.3.1
From 2bc544509cb594df229055c7aac89151921f9861 Mon Sep 17 00:00:00 2001
From: isanae <14251494+isanae@users.noreply.github.com>
Date: Mon, 9 Dec 2019 10:07:11 -0500
Subject: disable run hooked in filetree when mod is disabled
---
src/modinfodialogfiletree.cpp | 17 ++++++++++++++++-
src/organizer_en.ts | 8 ++++----
2 files changed, 20 insertions(+), 5 deletions(-)
(limited to 'src/modinfodialogfiletree.cpp')
diff --git a/src/modinfodialogfiletree.cpp b/src/modinfodialogfiletree.cpp
index 607d2e5b..c49c767f 100644
--- a/src/modinfodialogfiletree.cpp
+++ b/src/modinfodialogfiletree.cpp
@@ -453,6 +453,21 @@ void FileTreeTab::onContextMenu(const QPoint &pos)
}
}
+ bool enableRunHooked = false;
+
+ if (enableRun || enableOpen) {
+ if (auto* p=core().currentProfile()) {
+ if (mod().canBeEnabled()) {
+ const auto index = ModInfo::getIndex(mod().name());
+ if (index == UINT_MAX) {
+ log::error("mod '{}' not found (filetree)", mod().name());
+ } else {
+ enableRunHooked = p->modEnabled(index);
+ }
+ }
+ }
+ }
+
if (enableRun) {
m_actions.open->setText(tr("&Execute"));
m_actions.runHooked->setText(tr("Execute with &VFS"));
@@ -481,7 +496,7 @@ void FileTreeTab::onContextMenu(const QPoint &pos)
}
}
- if (enableOpen || enableRun) {
+ if (enableRunHooked) {
menu.addAction(m_actions.runHooked);
}
diff --git a/src/organizer_en.ts b/src/organizer_en.ts
index 9f83278b..a7796942 100644
--- a/src/organizer_en.ts
+++ b/src/organizer_en.ts
@@ -1283,7 +1283,7 @@ Right now the only case I know of where this needs to be overwritten is for the
-
+ Open with &VFS
@@ -1349,17 +1349,17 @@ Right now the only case I know of where this needs to be overwritten is for the
-
+ &Execute
-
+ Execute with &VFS
-
+ &Open
--
cgit v1.3.1
From 37891f29ca6f5935d4148bf5cf1f1d5a4eaa746c Mon Sep 17 00:00:00 2001
From: isanae <14251494+isanae@users.noreply.github.com>
Date: Mon, 9 Dec 2019 10:10:41 -0500
Subject: removed dead setDefaultActivationActionForFile()
---
src/mainwindow.cpp | 50 ----
src/modinfodialogconflicts.cpp | 4 -
src/modinfodialogfiletree.cpp | 3 -
src/organizer_en.ts | 598 ++++++++++++++++++++---------------------
4 files changed, 299 insertions(+), 356 deletions(-)
(limited to 'src/modinfodialogfiletree.cpp')
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index d3474838..1ea2a612 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -199,56 +199,6 @@ QString UnmanagedModName()
bool runLoot(QWidget* parent, OrganizerCore& core, bool didUpdateMasterList);
-void setDefaultActivationActionForFile(QAction* open, QAction* preview)
-{
- if (!open && !preview) {
- return;
- }
-
- QFont bold, notBold;
-
- if (open) {
- bold = open->font();
- notBold = open->font();
- } else {
- bold = preview->font();
- notBold = preview->font();
- }
-
- notBold.setBold(false);
- bold.setBold(true);
-
-
- const auto& s = Settings::instance();
- const auto openEnabled = (open && open->isEnabled());
- const auto previewEnabled = (preview && preview->isEnabled());
-
- bool doPreview = false;
-
- // preview is bold if the file is previewable and [the preview on double-click
- // option is enabled or the file can't be opened]; open is bold if the file
- // can be opened and cannot be previewed
- if (previewEnabled && s.interface().doubleClicksOpenPreviews()) {
- doPreview = true;
- } else if (openEnabled) {
- doPreview = false;
- } else if (previewEnabled) {
- doPreview = true;
- } else {
- // shouldn't happen, checked above
- return;
- }
-
- if (open) {
- open->setFont(doPreview ? notBold : bold);
- }
-
- if (preview) {
- preview->setFont(doPreview ? bold : notBold);
- }
-}
-
-
MainWindow::MainWindow(Settings &settings
, OrganizerCore &organizerCore
, PluginContainer &pluginContainer
diff --git a/src/modinfodialogconflicts.cpp b/src/modinfodialogconflicts.cpp
index 81e8c7a3..0fb8c5a6 100644
--- a/src/modinfodialogconflicts.cpp
+++ b/src/modinfodialogconflicts.cpp
@@ -12,10 +12,6 @@ using namespace MOBase;
// checking whether menu items apply to them, just show all of them
const std::size_t max_small_selection = 50;
-// in mainwindow.cpp
-void setDefaultActivationActionForFile(QAction* open, QAction* preview);
-
-
class ConflictItem
{
public:
diff --git a/src/modinfodialogfiletree.cpp b/src/modinfodialogfiletree.cpp
index c49c767f..2c33a7f1 100644
--- a/src/modinfodialogfiletree.cpp
+++ b/src/modinfodialogfiletree.cpp
@@ -14,9 +14,6 @@ namespace shell = MOBase::shell;
// checking whether menu items apply to them, just show all of them
const int max_scan_for_context_menu = 50;
-// in mainwindow.cpp
-void setDefaultActivationActionForFile(QAction* open, QAction* preview);
-
FileTreeTab::FileTreeTab(ModInfoDialogTabContext cx)
: ModInfoDialogTab(std::move(cx)), m_fs(nullptr)
{
diff --git a/src/organizer_en.ts b/src/organizer_en.ts
index a7796942..31612360 100644
--- a/src/organizer_en.ts
+++ b/src/organizer_en.ts
@@ -178,17 +178,17 @@ p, li { white-space: pre-wrap; }
AdvancedConflictListModel
-
+ Overwrites
-
+ File
-
+ Overwritten By
@@ -294,47 +294,47 @@ p, li { white-space: pre-wrap; }
ConflictsTab
-
+ &Execute
-
+ Execute with &VFS
-
+ &Open
-
+ Open with &VFS
-
+ &Preview
-
+ &Go to...
-
+ Open in &Explorer
-
+ &Hide
-
+ &Unhide
@@ -1272,94 +1272,94 @@ Right now the only case I know of where this needs to be overwritten is for the
FileTreeTab
-
+ &New Folder
-
+ &Open/Execute
-
-
+
+ Open with &VFS
-
+ &Preview
-
+ Open in &Explorer
-
+ &Rename
-
+ &Delete
-
+ &Hide
-
+ &Unhide
-
-
+
+ New Folder
-
+ Failed to create "%1"
-
+ Are you sure you want to delete "%1"?
-
+ Are you sure you want to delete the selected files?
-
+ Confirm
-
+ Failed to delete %1
-
+ &Execute
-
+ Execute with &VFS
-
+ &Open
@@ -1862,7 +1862,7 @@ p, li { white-space: pre-wrap; }
-
+ Create Backup
@@ -2038,8 +2038,8 @@ p, li { white-space: pre-wrap; }
-
-
+
+ Refresh
@@ -2324,7 +2324,7 @@ p, li { white-space: pre-wrap; }
-
+ Endorse Mod Organizer
@@ -2402,814 +2402,814 @@ p, li { white-space: pre-wrap; }
-
+ Toolbar and Menu
-
+ Desktop
-
+ Start Menu
-
+ There is no supported sort mechanism for this game. You will probably have to use a third-party tool.
-
+ Crash on exit
-
+ MO crashed while exiting. Some settings may not be saved.
Error: %1
-
+ There are notifications to read
-
+ There are no notifications
-
-
-
+
+
+ Endorse
-
+ Won't Endorse
-
+ Help on UI
-
+ Documentation
-
+ Chat on Discord
-
+ Report Issue
-
+ Tutorials
-
+ About
-
+ About Qt
-
+ Name
-
+ Please enter a name for the new profile
-
+ failed to create profile: %1
-
+ Show tutorial?
-
+ You are starting Mod Organizer for the first time. Do you want to show a tutorial of its basic features? If you choose no you can always start the tutorial from the "Help"-menu.
-
+ Downloads in progress
-
+ There are still downloads in progress, do you really want to quit?
-
+ Plugin "%1" failed: %2
-
+ Plugin "%1" failed
-
+ Browse Mod Page
-
+ Also in: <br>
-
+ No conflict
-
+ <Edit...>
-
+ (no executables)
-
+ This bsa is enabled in the ini file so it may be required!
-
+ Activating Network Proxy
-
+ Notice: Your current MO version (%1) is lower than the previously used one (%2). The GUI may not downgrade gracefully, so you may experience oddities. However, there should be no serious issues.
-
+ Choose Mod
-
+ Mod Archive
-
+ Start Tutorial?
-
+ You're about to start a tutorial. For technical reasons it's not possible to end the tutorial early. Continue?
-
+ failed to change origin name: %1
-
+ failed to move "%1" from mod "%2" to "%3": %4
-
+ failed to rename mod: %1
-
+ Overwrite?
-
+ This will replace the existing mod "%1". Continue?
-
+ failed to remove mod "%1"
-
-
-
+
+
+ failed to rename "%1" to "%2"
-
-
-
-
+
+
+
+ Confirm
-
+ Remove the following mods?<br><ul>%1</ul>
-
+ failed to remove mod: %1
-
-
-
+
+
+ Failed
-
+ Installation file no longer exists
-
+ Mods installed with old versions of MO can't be reinstalled in this way.
-
+ Failed to create backup.
-
+ Endorsing multiple mods will take a while. Please wait...
-
+ Unendorsing multiple mods will take a while. Please wait...
-
+ Failed to display overwrite dialog: %1
-
+ Opening Nexus Links
-
+ You are trying to open %1 links to Nexus Mods. Are you sure you want to do this?
-
+ Nexus ID for this mod is unknown
-
+ Opening Web Pages
-
+ You are trying to open %1 Web Pages. Are you sure you want to do this?
-
+ <table cellspacing="5"><tr><th>Type</th><th>All</th><th>Visible</th><tr><td>Enabled mods: </td><td align=right>%1 / %2</td><td align=right>%3 / %4</td></tr><tr><td>Unmanaged/DLCs: </td><td align=right>%5</td><td align=right>%6</td></tr><tr><td>Mod backups: </td><td align=right>%7</td><td align=right>%8</td></tr><tr><td>Separators: </td><td align=right>%9</td><td align=right>%10</td></tr></table>
-
+ <table cellspacing="6"><tr><th>Type</th><th>Active </th><th>Total</th></tr><tr><td>All plugins:</td><td align=right>%1 </td><td align=right>%2</td></tr><tr><td>ESMs:</td><td align=right>%3 </td><td align=right>%4</td></tr><tr><td>ESPs:</td><td align=right>%7 </td><td align=right>%8</td></tr><tr><td>ESMs+ESPs:</td><td align=right>%9 </td><td align=right>%10</td></tr><tr><td>ESLs:</td><td align=right>%5 </td><td align=right>%6</td></tr></table>
-
-
-
+
+
+ Create Mod...
-
+ This will create an empty mod.
Please enter a name:
-
-
+
+ A mod with this name already exists
-
+ Create Separator...
-
+ This will create a new separator.
Please enter a name:
-
+ A separator with this name already exists
-
+ This will move all files from overwrite into a new, regular mod.
Please enter a name:
-
+ Move successful.
-
-
+
+ Are you sure?
-
+ About to recursively delete:
-
+ Continue?
-
+ The versioning scheme decides which version is considered newer than another.
This function will guess the versioning scheme under the assumption that the installed version is outdated.
-
+ Sorry
-
+ I don't know a versioning scheme where %1 is newer than %2.
-
+ Really enable all visible mods?
-
+ Really disable all visible mods?
-
+ Export to csv
-
+ CSV (Comma Separated Values) is a format that can be imported in programs like Excel to create a spreadsheet.
You can also use online editors and converters instead.
-
+ Select what mods you want export:
-
+ All installed mods
-
+ Only active (checked) mods from your current profile
-
+ All currently visible mods in the mod list
-
+ Choose what Columns to export:
-
+ Mod_Priority
-
+ Mod_Name
-
+ Notes_column
-
+ Mod_Status
-
+ Primary_Category
-
+ Nexus_ID
-
+ Mod_Nexus_URL
-
+ Mod_Version
-
+ Install_Date
-
+ Download_File_Name
-
+ export failed: %1
-
+ Open Game folder
-
+ Open MyGames folder
-
+ Open INIs folder
-
+ Open Instance folder
-
+ Open Mods folder
-
+ Open Profile folder
-
+ Open Downloads folder
-
+ Open MO2 Install folder
-
+ Open MO2 Plugins folder
-
+ Open MO2 Stylesheets folder
-
+ Open MO2 Logs folder
-
+ Install Mod...
-
+ Create empty mod
-
+ Create Separator
-
+ Enable all visible
-
+ Disable all visible
-
+ Check for updates
-
+ Export to csv...
-
-
+
+ Send to
-
-
+
+ Top
-
-
+
+ Bottom
-
-
+
+ Priority...
-
+ Separator...
-
+ All Mods
-
+ Sync to Mods...
-
+ Move content to Mod...
-
+ Clear Overwrite...
-
-
+
+ Open in Explorer
-
+ Restore Backup
-
+ Remove Backup...
-
-
+
+ Change Categories
-
-
+
+ Primary Category
-
+ Rename Separator...
-
+ Remove Separator...
-
+ Select Color...
-
+ Reset Color
-
+ Change versioning scheme
-
+ Force-check updates
-
+ Un-ignore update
-
+ Ignore update
-
-
+
+ Enable selected
-
-
+
+ Disable selected
-
+ Rename Mod...
-
+ Reinstall Mod
-
+ Remove Mod...
-
+ Un-Endorse
-
+ Won't endorse
-
+ Endorsement state unknown
-
+ Start tracking
-
+ Stop tracking
-
+ Tracked state unknown
-
+ Ignore missing data
-
+ Mark as converted/working
-
+ Visit on Nexus
-
+ Visit on %1
-
+ Information...
-
-
+
+ Exception:
-
-
+
+ Unknown exception
-
+ %1 more
-
+ Are you sure you want to remove the following %n save(s)?<br><ul>%1</ul><br>Removed saves will be sent to the Recycle Bin.
@@ -3217,12 +3217,12 @@ You can also use online editors and converters instead.
-
+ Enable Mods...
-
+ Delete %n save(s)
@@ -3230,335 +3230,335 @@ You can also use online editors and converters instead.
-
+ Restart Mod Organizer
-
+ Mod Organizer must restart to finish configuration changes
-
+ Restart
-
+ Continue
-
+ Some things might be weird.
-
+ Can't change download directory while downloads are in progress!
-
+ failed to write to file %1
-
+ %1 written
-
+ Enter Name
-
+ Enter a name for the executable
-
+ Not an executable
-
+ This is not a recognized executable.
-
-
+
+ Replace file?
-
+ There already is a hidden version of this file. Replace it?
-
-
+
+ File operation failed
-
-
+
+ Failed to remove "%1". Maybe you lack the required file permissions?
-
+ There already is a visible version of this file. Replace it?
-
-
+
+ Set Priority
-
+ Set the priority of the selected plugins
-
+ Update available
-
+ &Execute
-
+ Execute with &VFS
-
+ &Open
-
+ Open with &VFS
-
+ &Add as Executable
-
+ Preview
-
+ Un-Hide
-
+ Hide
-
+ Write To File...
-
+ Do you want to endorse Mod Organizer on %1 now?
-
+ Abstain from Endorsing Mod Organizer
-
+ Are you sure you want to abstain from endorsing Mod Organizer 2?
You will have to visit the mod page on the %1 Nexus site to change your mind.
-
+ Thank you for endorsing MO2! :)
-
+ Please reconsider endorsing MO2 on Nexus!
-
+ Thank you!
-
+ Thank you for your endorsement!
-
+ Mod ID %1 no longer seems to be available on Nexus.
-
+ Request to Nexus failed: %1
-
-
+
+ failed to read %1: %2
-
+ Error
-
+ failed to extract %1 (errorcode %2)
-
+ Extract BSA
-
+ This archive contains invalid hashes. Some files may be broken.
-
+ Extract...
-
+ This will restart MO, continue?
-
+ <Multiple>
-
+ Remove '%1' from the toolbar
-
+ Enable all
-
+ Disable all
-
+ Unlock load order
-
+ Lock load order
-
+ Open Origin in Explorer
-
+ Open Origin Info...
-
+ Backup of load order created
-
+ Choose backup to restore
-
+ No Backups
-
+ There are no backups to restore
-
-
+
+ Restore failed
-
-
+
+ Failed to restore the backup. Errorcode: %1
-
+ Backup of mod list created
-
+ A file with the same name has already been downloaded. What would you like to do?
-
+ Overwrite
-
+ Rename new file
-
+ Ignore file
-
+ Set the priority of the selected mods
@@ -4554,7 +4554,7 @@ p, li { white-space: pre-wrap; }
NoConflictListModel
-
+ File
@@ -4770,12 +4770,12 @@ Continue?
OverwriteConflictListModel
-
+ File
-
+ Overwritten Mods
@@ -4862,12 +4862,12 @@ Continue?
OverwrittenConflictListModel
-
+ File
-
+ Providing Mod
@@ -6109,18 +6109,18 @@ If the folder was still in use, restart MO and try again.
-
+ Please use "Help" from the toolbar to get usage instructions to all elements
-
-
+
+ <Manage...>
-
+ failed to parse profile %1: %2
--
cgit v1.3.1